Package org.sakaiproject.poll.model
Class Poll
- java.lang.Object
-
- org.sakaiproject.poll.model.Poll
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sakaiproject.entity.api.Entity
Entity.UrlType
-
-
Constructor Summary
Constructors Constructor Description Poll()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOption(Option option)voidaddVote(Vote vote)Attach a vote to the list of votes for this pollstatic PollfromXML(Element element)StringgetDetails()StringgetId()ResourcePropertiesgetProperties()StringgetReference()StringgetReference(String arg0)StringgetUrl()StringgetUrl(String arg0)StringgetVoteCloseStr()StringgetVoteOpenStr()voidsetDetails(String value)voidsetVoteCloseStr(String value)voidsetVoteOpenStr(String value)StringtoString()ElementtoXml(Document doc, Stack stack)
-
-
-
Method Detail
-
setVoteOpenStr
public void setVoteOpenStr(String value)
-
getVoteOpenStr
public String getVoteOpenStr()
-
setVoteCloseStr
public void setVoteCloseStr(String value)
-
getVoteCloseStr
public String getVoteCloseStr()
-
addVote
public void addVote(Vote vote)
Attach a vote to the list of votes for this poll- Parameters:
vote-
-
addOption
public void addOption(Option option)
-
setDetails
public void setDetails(String value)
-
getDetails
public String getDetails()
-
getReference
public String getReference()
- Specified by:
getReferencein interfaceEntity
-
getReference
public String getReference(String arg0)
- Specified by:
getReferencein interfaceEntity
-
getProperties
public ResourceProperties getProperties()
- Specified by:
getPropertiesin interfaceEntity
-
-