|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.impl.common.BaseEntity com.hack23.cia.model.impl.sweden.content.AbstractBallotMetaData com.hack23.cia.model.impl.sweden.content.AbstractBallotResult com.hack23.cia.model.impl.sweden.content.PartyBallotResult
@Entity public class PartyBallotResult extends AbstractBallotResult implements PartyBallotResultData
The Class PartyBallotResult.
Modifier and Type | Field and Description |
---|
Fields inherited from class com.hack23.cia.model.impl.sweden.content.AbstractBallotResult |
---|
opponentVotes, winningPosition, winningVotes |
Fields inherited from class com.hack23.cia.model.impl.sweden.content.AbstractBallotMetaData |
---|
absentVotes, neutralVotes, noVotes, totalVotes, yesVotes |
Constructor and Description |
---|
PartyBallotResult()
Instantiates a new party ballot result. |
Modifier and Type | Method and Description |
---|---|
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.content.AbstractBallotResult |
---|
calcWinningPosition, getOpponentVotes, getWinningPosition, getWinningVotes, setOpponentVotes, setWinningPosition, setWinningVotes |
Methods inherited from class com.hack23.cia.model.impl.sweden.content.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.configuration.PartyBallotResultData |
---|
calcWinningPosition, getOpponentVotes, getWinningPosition, getWinningVotes |
Methods inherited from interface com.hack23.cia.model.api.sweden.configuration.BaseBallotResultData |
---|
getAbsentVotes, getTotalVotes, 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 ParliamentMetaData
public PoliticalParty getPoliticalParty()
public ResourceType getResourceType()
Resource
getResourceType
in interface Resource
public boolean isRebelVote(VoteData vote)
PartyBallotResultData
isRebelVote
in interface PartyBallotResultData
vote
- the vote for parliament memberpublic 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 PartyBallotResultData
politicalParty
- 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 |