|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.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 ParliamentDatapublic boolean generatesParliamentMetaData()
ParliamentData
generatesParliamentMetaData in interface ParliamentDatapublic BallotResult getBallotResult()
public CommitteeReport getCommiteeReport()
public Date getDatum()
public String getDescription()
public Long getId()
BaseEntity
getId in interface PersistedModelObjectgetId in class BaseEntitypublic Date getImportedDate()
ParliamentData
getImportedDate in interface ParliamentDatapublic ParliamentData.ImportStatus getImportStatus()
ParliamentData
getImportStatus in interface ParliamentDatapublic String getOverviewHref()
public ParliamentMetaData getParliamentMetaData()
ParliamentData
getParliamentMetaData in interface ParliamentDatapublic List<PartyBallotResult> getPartyBallotResult()
public PartyBallotResult getPartyBallotResult(String party)
party - the party
public ResourceType getResourceType()
Resource
getResourceType in interface Resourcepublic Long getVersion()
BaseEntity
getVersion in interface PersistedModelObjectgetVersion in class BaseEntitypublic 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 PersistedModelObjectid - the new idpublic void setImportedDate(Date importedDate)
ParliamentData
setImportedDate in interface ParliamentDataimportedDate - the new imported datepublic void setImportStatus(ParliamentData.ImportStatus importStatus)
ParliamentData
setImportStatus in interface ParliamentDataimportStatus - 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 ResourceresourceType - the new resource typepublic void setVersion(Long version)
PersistedModelObject
setVersion in interface PersistedModelObjectversion - 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 | |||||||||