|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.common.impl.BaseEntity com.hack23.cia.model.sweden.impl.Ballot
@Entity public class Ballot
The Class Ballot.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.hack23.cia.model.sweden.api.ParliamentData |
---|
ParliamentData.ImportStatus |
Field Summary | |
---|---|
static int |
TOTAL_VOTES
The Constant TOTAL_VOTES. |
Constructor Summary | |
---|---|
Ballot()
|
Method Summary | |
---|---|
boolean |
dataCanBeUpdated()
Data can be updated. |
boolean |
generatesParliamentMetaData()
Generates parliament meta data. |
BallotResult |
getBallotResult()
Gets the ballot result. |
CommitteeReport |
getCommiteeReport()
Gets the commitee report. |
Date |
getDatum()
Gets the datum. |
String |
getDescription()
Gets the description. |
Long |
getId()
Gets the id. |
Date |
getImportedDate()
Gets the imported date. |
ParliamentData.ImportStatus |
getImportStatus()
Gets the import status. |
String |
getOverviewHref()
Gets the overview href. |
ParliamentMetaData |
getParliamentMetaData()
Gets the parliament meta data. |
List<PartyBallotResult> |
getPartyBallotResult()
Gets the party ballot result. |
PartyBallotResult |
getPartyBallotResult(String party)
Gets the party ballot result. |
ResourceType |
getResourceType()
Gets the resource type. |
Long |
getVersion()
Gets the version. |
Vote |
getVoteForParliamentMember(ParliamentMember parliamentMember)
Gets the vote for parliament member. |
String |
getVoteResultsHref()
Gets the vote results href. |
List<Vote> |
getVotes()
Gets the votes. |
boolean |
isRebelVote(Vote vote)
Checks if is rebel vote. |
boolean |
isWinningPosition(Vote.Position position)
Checks if is winning position. |
void |
setBallotResult(BallotResult ballotResult)
Sets the ballot result. |
void |
setCommiteeReport(CommitteeReport commiteeReport)
Sets the commitee report. |
void |
setDatum(Date datum)
Sets the datum. |
void |
setDescription(String description)
Sets the description. |
void |
setId(Long id)
Sets the id. |
void |
setImportedDate(Date importedDate)
Sets the imported date. |
void |
setImportStatus(ParliamentData.ImportStatus importStatus)
Sets the import status. |
void |
setOverviewHref(String overviewHref)
Sets the overview href. |
void |
setPartyBallotResult(List<PartyBallotResult> partyBallotResult)
Sets the party ballot result. |
void |
setResourceType(ResourceType resourceType)
Sets the resource type. |
void |
setVersion(Long version)
Sets the version. |
void |
setVoteResultsHref(String voteResultsHref)
Sets the vote results href. |
void |
setVotes(List<Vote> votes)
Sets the votes. |
Methods inherited from class com.hack23.cia.model.common.impl.BaseEntity |
---|
equals, hashCode, isNew |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject |
---|
isNew |
Field Detail |
---|
public static final int TOTAL_VOTES
Constructor Detail |
---|
public Ballot()
Method Detail |
---|
public boolean dataCanBeUpdated()
ParliamentData
dataCanBeUpdated
in interface ParliamentData
public boolean generatesParliamentMetaData()
ParliamentData
generatesParliamentMetaData
in interface ParliamentData
public BallotResult getBallotResult()
public CommitteeReport getCommiteeReport()
public Date getDatum()
public String getDescription()
public Long getId()
BaseEntity
getId
in interface PersistedModelObject
getId
in class BaseEntity
public Date getImportedDate()
ParliamentData
getImportedDate
in interface ParliamentData
public ParliamentData.ImportStatus getImportStatus()
ParliamentData
getImportStatus
in interface ParliamentData
public String getOverviewHref()
public ParliamentMetaData getParliamentMetaData()
ParliamentData
getParliamentMetaData
in interface ParliamentData
public List<PartyBallotResult> getPartyBallotResult()
public PartyBallotResult getPartyBallotResult(String party)
party
- the party
public ResourceType getResourceType()
Resource
getResourceType
in interface Resource
public Long getVersion()
BaseEntity
getVersion
in interface PersistedModelObject
getVersion
in class BaseEntity
public Vote getVoteForParliamentMember(ParliamentMember parliamentMember)
parliamentMember
- the parliament member
public String getVoteResultsHref()
public List<Vote> getVotes()
public boolean isRebelVote(Vote vote)
vote
- the vote
public boolean isWinningPosition(Vote.Position position)
position
- the position
public void setBallotResult(BallotResult ballotResult)
ballotResult
- the new ballot resultpublic void setCommiteeReport(CommitteeReport commiteeReport)
commiteeReport
- the new commitee reportpublic void setDatum(Date datum)
datum
- the new datumpublic void setDescription(String description)
description
- the new descriptionpublic void setId(Long id)
PersistedModelObject
setId
in interface PersistedModelObject
id
- the new idpublic void setImportedDate(Date importedDate)
ParliamentData
setImportedDate
in interface ParliamentData
importedDate
- the new imported datepublic void setImportStatus(ParliamentData.ImportStatus importStatus)
ParliamentData
setImportStatus
in interface ParliamentData
importStatus
- the new import statuspublic void setOverviewHref(String overviewHref)
overviewHref
- the new overview hrefpublic void setPartyBallotResult(List<PartyBallotResult> partyBallotResult)
partyBallotResult
- the new party ballot resultpublic void setResourceType(ResourceType resourceType)
Resource
setResourceType
in interface Resource
resourceType
- the new resource typepublic void setVersion(Long version)
PersistedModelObject
setVersion
in interface PersistedModelObject
version
- the new versionpublic void setVoteResultsHref(String voteResultsHref)
voteResultsHref
- the new vote results hrefpublic void setVotes(List<Vote> votes)
votes
- the new votes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |