com.hack23.cia.model.impl.sweden.content
Class PartyBallotResult

Package class diagram package PartyBallotResult
java.lang.Object
  extended by com.hack23.cia.model.impl.common.BaseEntity
      extended by com.hack23.cia.model.impl.sweden.content.AbstractBallotMetaData
          extended by com.hack23.cia.model.impl.sweden.content.AbstractBallotResult
              extended by com.hack23.cia.model.impl.sweden.content.PartyBallotResult
All Implemented Interfaces:
Data, MetaData, ModelObject, PersistedModelObject, Resource, ParliamentMetaData, BaseBallotResultData, PartyBallotResultData, Serializable

@Entity
public class PartyBallotResult
extends AbstractBallotResult
implements PartyBallotResultData

The Class PartyBallotResult.

See Also:
Serialized Form

Field Summary
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 Summary
Constructor and Description
PartyBallotResult()
          Instantiates a new party ballot result.
 
Method Summary
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

PartyBallotResult

public PartyBallotResult()
Instantiates a new party ballot result.

Method Detail

getCreatedDate

public Date getCreatedDate()
Description copied from interface: ParliamentMetaData
Gets the created date.

Specified by:
getCreatedDate in interface ParliamentMetaData
Returns:
the created date

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.

Specified by:
getResourceType in interface Resource
Returns:
the resource type

isRebelVote

public boolean isRebelVote(VoteData vote)
Description copied from interface: PartyBallotResultData
Checks if is rebel vote.

Specified by:
isRebelVote in interface PartyBallotResultData
Parameters:
vote - the vote for parliament member
Returns:
true, if is rebel vote

setCreatedDate

public void setCreatedDate(Date createdDate)
Sets the created date.

Parameters:
createdDate - the new created date

setPoliticalParty

public void setPoliticalParty(PoliticalParty politicalParty)
Sets the political party.

Parameters:
politicalParty - the new political party

setPoliticalPartyData

public void setPoliticalPartyData(PoliticalPartyData politicalParty)
Description copied from interface: PartyBallotResultData
Sets the political party data.

Specified by:
setPoliticalPartyData in interface PartyBallotResultData
Parameters:
politicalParty - the new political party data

setResourceType

public void setResourceType(ResourceType resourceType)
Sets the resource type.

Parameters:
resourceType - the new resource type


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.