Package org.sakaiproject.poll.model
Class Poll
- java.lang.Object
-
- org.sakaiproject.poll.model.Poll
-
- All Implemented Interfaces:
org.sakaiproject.entity.api.Entity
public class Poll extends Object implements org.sakaiproject.entity.api.Entity
-
-
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()org.sakaiproject.entity.api.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()
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfaceorg.sakaiproject.entity.api.Entity
-
getReference
public String getReference()
- Specified by:
getReferencein interfaceorg.sakaiproject.entity.api.Entity
-
getUrl
public String getUrl(String arg0)
- Specified by:
getUrlin interfaceorg.sakaiproject.entity.api.Entity
-
getReference
public String getReference(String arg0)
- Specified by:
getReferencein interfaceorg.sakaiproject.entity.api.Entity
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.sakaiproject.entity.api.Entity
-
getProperties
public org.sakaiproject.entity.api.ResourceProperties getProperties()
- Specified by:
getPropertiesin interfaceorg.sakaiproject.entity.api.Entity
-
toXml
public Element toXml(Document doc, Stack stack)
- Specified by:
toXmlin interfaceorg.sakaiproject.entity.api.Entity
-
-