com.hack23.cia.model.sweden.impl
Class PartyBallotResult
java.lang.Object
com.hack23.cia.model.common.impl.BaseEntity
com.hack23.cia.model.sweden.impl.AbstractBallotMetaData
com.hack23.cia.model.sweden.impl.AbstractBallotResult
com.hack23.cia.model.sweden.impl.PartyBallotResult
- All Implemented Interfaces:
- Data, MetaData, ModelObject, PersistedModelObject, Resource, ParliamentMetaData, Serializable
@Entity
public class PartyBallotResult
- extends AbstractBallotResult
The Class PartyBallotResult.
- See Also:
- Serialized Form
Methods inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotMetaData |
getAbsentVotes, getId, getNeutralVotes, getNoVotes, getTotalVotes, getVersion, getYesVotes, newVote, setAbsentVotes, setId, setNeutralVotes, setNoVotes, setTotalVotes, setVersion, setYesVotes |
PartyBallotResult
public PartyBallotResult()
- Instantiates a new party ballot result.
getPoliticalParty
public PoliticalParty getPoliticalParty()
- Gets the political party.
- Returns:
- the political party
getResourceType
public ResourceType getResourceType()
- Description copied from interface:
Resource
- Gets the resource type.
- Returns:
- the resource type
isRebelVote
public boolean isRebelVote(Vote vote)
- Checks if is rebel vote.
- Parameters:
vote
- the vote
- Returns:
- true, if is rebel vote
setPoliticalParty
public void setPoliticalParty(PoliticalParty politicalParty)
- Sets the political party.
- Parameters:
politicalParty
- the new political party
setResourceType
public void setResourceType(ResourceType resourceType)
- Description copied from interface:
Resource
- Sets the resource type.
- Parameters:
resourceType
- the new resource type
Copyright © 2008-2009 www.hack23.com. All Rights Reserved.