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

java.lang.Objectcom.hack23.cia.model.impl.common.BaseEntity
com.hack23.cia.model.impl.sweden.AbstractBallotMetaData
com.hack23.cia.model.impl.sweden.AbstractBallotResult
com.hack23.cia.model.impl.sweden.PartyBallotResult
@Entity public class PartyBallotResult
The Class PartyBallotResult.
| Field Summary |
|---|
| Fields inherited from class com.hack23.cia.model.impl.sweden.AbstractBallotResult |
|---|
opponentVotes, winningPosition, winningVotes |
| Fields inherited from class com.hack23.cia.model.impl.sweden.AbstractBallotMetaData |
|---|
absentVotes, neutralVotes, noVotes, totalVotes, yesVotes |
| Constructor Summary | |
|---|---|
PartyBallotResult()
Instantiates a new party ballot result. |
|
| Method Summary | |
|---|---|
Date |
getCreatedDate()
Gets the created date. |
PoliticalParty |
getPoliticalParty()
Gets the political party. |
ResourceType |
getResourceType()
Gets the resource type. |
boolean |
isRebelVote(VoteData vote)
Checks if is rebel vote. |
void |
setCreatedDate(Date createdDate)
Sets the created date. |
void |
setPoliticalParty(PoliticalParty politicalParty)
Sets the political party. |
void |
setPoliticalPartyData(PoliticalPartyData politicalParty)
Sets the political party data. |
void |
setResourceType(ResourceType resourceType)
Sets the resource type. |
| Methods inherited from class com.hack23.cia.model.impl.sweden.AbstractBallotResult |
|---|
calcWinningPosition, getOpponentVotes, getWinningPosition, getWinningVotes, setOpponentVotes, setWinningPosition, setWinningVotes |
| Methods inherited from class com.hack23.cia.model.impl.sweden.AbstractBallotMetaData |
|---|
getAbsentVotes, getApplicationTypeContext, getId, getNeutralVotes, getNoVotes, getTotalVotes, getVersion, getYesVotes, newVote, setAbsentVotes, setId, setNeutralVotes, setNoVotes, setTotalVotes, setVersion, setYesVotes |
| Methods inherited from class com.hack23.cia.model.impl.common.BaseEntity |
|---|
equals, getTypeContext, 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.api.sweden.PartyBallotResultData |
|---|
calcWinningPosition, getAbsentVotes, getOpponentVotes, getTotalVotes, getWinningPosition, getWinningVotes, newVote |
| Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject |
|---|
getId, getTypeContext, getVersion, isNew, setId, setVersion |
| Constructor Detail |
|---|
public PartyBallotResult()
| Method Detail |
|---|
public Date getCreatedDate()
ParliamentMetaData
getCreatedDate in interface ParliamentMetaDatapublic PoliticalParty getPoliticalParty()
public ResourceType getResourceType()
Resource
getResourceType in interface Resourcepublic boolean isRebelVote(VoteData vote)
PartyBallotResultData
isRebelVote in interface PartyBallotResultDatavote - the vote for parliament member
public void setCreatedDate(Date createdDate)
createdDate - the new created datepublic void setPoliticalParty(PoliticalParty politicalParty)
politicalParty - the new political partypublic void setPoliticalPartyData(PoliticalPartyData politicalParty)
PartyBallotResultData
setPoliticalPartyData in interface PartyBallotResultDatapoliticalParty - the new political party datapublic void setResourceType(ResourceType resourceType)
resourceType - the new resource type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||