za.org.coefficient.modules.vote
Class VoteData

java.lang.Object
  extended by za.org.coefficient.modules.vote.VoteData
All Implemented Interfaces:
java.io.Serializable

public class VoteData
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
private  java.util.List answers
           
private  java.util.List counts
           
private  java.util.Date endDate
           
private  java.lang.Long id
           
private  Role minimumRole
           
(package private) static java.lang.String[] months
           
private  java.lang.String name
           
private  java.lang.String person
           
private  java.lang.Long projectId
           
private  java.lang.String question
           
private  java.lang.Long sequence
           
private  java.util.Date startDate
           
private  java.lang.Boolean status
           
private  java.util.List voters
           
 
Constructor Summary
VoteData()
           
 
Method Summary
 java.lang.String dump()
           
 java.util.List getAnswers()
          Gets the value of answers
 java.util.List getCounts()
          Gets the value of counts
private  java.lang.String getDate(java.util.Date date)
           
static java.lang.String getDay(java.util.Date date)
           
 java.util.Date getEndDate()
          Gets the value of endDate
 java.lang.String getEndDateAsString()
           
 java.lang.String getEndDateDay()
           
 java.lang.String getEndDateMonth()
           
 java.lang.String getEndDateYear()
           
 java.lang.Long getId()
          Gets the value of id
 Role getMinimumRole()
          Gets the value of minimumRole
static java.lang.String getMonth(java.util.Date date)
           
 java.lang.String getName()
          Gets the value of name
 java.lang.String getPerson()
          Gets the value of person
 java.lang.Long getProjectId()
          Gets the value of id
 java.lang.String getQuestion()
          Gets the value of question
 java.lang.Long getSequence()
          Gets the value of sequence
 java.util.Date getStartDate()
          Gets the value of startDate
 java.lang.String getStartDateAsString()
           
 java.lang.String getStartDateDay()
           
 java.lang.String getStartDateMonth()
           
 java.lang.String getStartDateYear()
           
 java.lang.Boolean getStatus()
          Gets the value of status
 java.util.List getVoters()
          Gets the value of voters
static java.lang.String getYear(java.util.Date date)
           
 void setAnswers(java.util.List answers)
          Sets the value of answers
 void setCounts(java.util.List counts)
          Sets the value of counts
private  java.util.Date setDate(java.lang.String year, java.lang.String month, java.lang.String day)
           
 void setEndDate(java.util.Date argEndDate)
          Sets the value of endDate
 void setEndDate(java.lang.String year, java.lang.String month, java.lang.String day)
           
 void setId(java.lang.Long argId)
          Sets the value of id
 void setMinimumRole(Role argRole)
           
 void setName(java.lang.String name)
          Sets the value of name
 void setPerson(java.lang.String person)
          Sets the value of person
 void setProjectId(java.lang.Long argId)
          Sets the value of projectId
 void setQuestion(java.lang.String question)
          Sets the value of question
 void setSequence(java.lang.Long argSequence)
          Sets the value of sequence
 void setSequence(java.lang.String argSequence)
           
 void setStartDate(java.util.Date argStartDate)
          Sets the value of startDate
 void setStartDate(java.lang.String year, java.lang.String month, java.lang.String day)
           
 void setStatus(java.lang.Boolean status)
          Sets the value of status
 void setVoters(java.util.List voters)
          Sets the value of voters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

months

static java.lang.String[] months

status

private java.lang.Boolean status

endDate

private java.util.Date endDate

startDate

private java.util.Date startDate

answers

private java.util.List answers

counts

private java.util.List counts

voters

private java.util.List voters

id

private java.lang.Long id

projectId

private java.lang.Long projectId

sequence

private java.lang.Long sequence

minimumRole

private Role minimumRole

name

private java.lang.String name

person

private java.lang.String person

question

private java.lang.String question
Constructor Detail

VoteData

public VoteData()
Method Detail

getDay

public static java.lang.String getDay(java.util.Date date)

setAnswers

public void setAnswers(java.util.List answers)
Sets the value of answers

Parameters:
answers - Value to assign to this.answers

getAnswers

public java.util.List getAnswers()
Gets the value of answers

Returns:
the value of answers

setCounts

public void setCounts(java.util.List counts)
Sets the value of counts

Parameters:
counts - Value to assign to this.counts

getCounts

public java.util.List getCounts()
Gets the value of counts

Returns:
the value of counts

setEndDate

public void setEndDate(java.lang.String year,
                       java.lang.String month,
                       java.lang.String day)

setEndDate

public void setEndDate(java.util.Date argEndDate)
Sets the value of endDate

Parameters:
argId - Value to assign to this.endDate

getEndDate

public java.util.Date getEndDate()
Gets the value of endDate

Returns:
the value of endDate

getEndDateAsString

public java.lang.String getEndDateAsString()

getEndDateYear

public java.lang.String getEndDateYear()

setId

public void setId(java.lang.Long argId)
Sets the value of id

Parameters:
argId - Value to assign to this.id

getId

public java.lang.Long getId()
Gets the value of id

Returns:
the value of id

getMonth

public static java.lang.String getMonth(java.util.Date date)

setMinimumRole

public void setMinimumRole(Role argRole)

getMinimumRole

public Role getMinimumRole()
Gets the value of minimumRole

Returns:
the value of minimumRole

setName

public void setName(java.lang.String name)
Sets the value of name

Parameters:
argName - Value to assign to this.name

getName

public java.lang.String getName()
Gets the value of name

Returns:
the value of name

setPerson

public void setPerson(java.lang.String person)
Sets the value of person

Parameters:
argPerson - Value to assign to this.person

getPerson

public java.lang.String getPerson()
Gets the value of person

Returns:
the value of person

setProjectId

public void setProjectId(java.lang.Long argId)
Sets the value of projectId

Parameters:
argId - Value to assign to this.id

getProjectId

public java.lang.Long getProjectId()
Gets the value of id

Returns:
the value of projectId

setQuestion

public void setQuestion(java.lang.String question)
Sets the value of question

Parameters:
argQuestion - Value to assign to this.question

getQuestion

public java.lang.String getQuestion()
Gets the value of question

Returns:
the value of question

setSequence

public void setSequence(java.lang.Long argSequence)
Sets the value of sequence

Parameters:
argId - Value to assign to this.sequence

setSequence

public void setSequence(java.lang.String argSequence)

getSequence

public java.lang.Long getSequence()
Gets the value of sequence

Returns:
the value of sequence

setStartDate

public void setStartDate(java.util.Date argStartDate)
Sets the value of startDate

Parameters:
argId - Value to assign to this.startDate

setStartDate

public void setStartDate(java.lang.String year,
                         java.lang.String month,
                         java.lang.String day)

getStartDate

public java.util.Date getStartDate()
Gets the value of startDate

Returns:
the value of startDate

getYear

public static java.lang.String getYear(java.util.Date date)

getEndDateDay

public java.lang.String getEndDateDay()

getEndDateMonth

public java.lang.String getEndDateMonth()

getStartDateAsString

public java.lang.String getStartDateAsString()

getStartDateDay

public java.lang.String getStartDateDay()

getStartDateMonth

public java.lang.String getStartDateMonth()

getStartDateYear

public java.lang.String getStartDateYear()

setStatus

public void setStatus(java.lang.Boolean status)
Sets the value of status

Parameters:
argQuestion - Value to assign to this.status

getStatus

public java.lang.Boolean getStatus()
Gets the value of status

Returns:
the value of status

setVoters

public void setVoters(java.util.List voters)
Sets the value of voters

Parameters:
voters - Value to assign to this.voters

getVoters

public java.util.List getVoters()
Gets the value of voters

Returns:
the value of voters

dump

public java.lang.String dump()

setDate

private java.util.Date setDate(java.lang.String year,
                               java.lang.String month,
                               java.lang.String day)

getDate

private java.lang.String getDate(java.util.Date date)


Copyright CSIR. All Rights Reserved.