Class Poll

  • All Implemented Interfaces:
    org.sakaiproject.entity.api.Entity

    public class Poll
    extends Object
    implements org.sakaiproject.entity.api.Entity
    • Constructor Detail

      • Poll

        public Poll()
    • 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:
        getUrl in interface org.sakaiproject.entity.api.Entity
      • getReference

        public String getReference()
        Specified by:
        getReference in interface org.sakaiproject.entity.api.Entity
      • getUrl

        public String getUrl​(String arg0)
        Specified by:
        getUrl in interface org.sakaiproject.entity.api.Entity
      • getReference

        public String getReference​(String arg0)
        Specified by:
        getReference in interface org.sakaiproject.entity.api.Entity
      • getId

        public String getId()
        Specified by:
        getId in interface org.sakaiproject.entity.api.Entity
      • getProperties

        public org.sakaiproject.entity.api.ResourceProperties getProperties()
        Specified by:
        getProperties in interface org.sakaiproject.entity.api.Entity
      • toXml

        public Element toXml​(Document doc,
                             Stack stack)
        Specified by:
        toXml in interface org.sakaiproject.entity.api.Entity
      • fromXML

        public static Poll fromXML​(Element element)