Class Vote


  • public class Vote
    extends Object

    Java class for Vote complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Vote">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="proposal" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
             <element name="guestName" type="{http://www.w3.org/2001/XMLSchema}string"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • guestName

        protected String guestName
    • Constructor Detail

      • Vote

        public Vote()
    • Method Detail

      • getProposals

        public List<String> getProposals()
        Gets the value of the proposals property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the proposals property.

        For example, to add a new item, do as follows:

            getProposals().add(newItem);
         

        Objects of the following type(s) are allowed in the list String

      • getGuestName

        public String getGuestName()
        Gets the value of the guestName property.
        Returns:
        possible object is String
      • setGuestName

        public void setGuestName​(String value)
        Sets the value of the guestName property.
        Parameters:
        value - allowed object is String
      • withProposals

        public Vote withProposals​(String... values)
      • withGuestName

        public Vote withGuestName​(String value)