Package com.xwiki.xpoll.rest.model.jaxb
Class Vote
- java.lang.Object
-
- com.xwiki.xpoll.rest.model.jaxb.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>
-
-
Constructor Summary
Constructors Constructor Description Vote()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGuestName()Gets the value of the guestName property.List<String>getProposals()Gets the value of the proposals property.voidsetGuestName(String value)Sets the value of the guestName property.VotewithGuestName(String value)VotewithProposals(String... values)VotewithProposals(Collection<String> values)
-
-
-
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
setmethod 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 isString
-
withProposals
public Vote withProposals(Collection<String> values)
-
-