com.hack23.cia.model.sweden.impl
Class VoteMetaData

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

@Entity
public class VoteMetaData
extends BaseEntity
implements ParliamentMetaData

The Class VoteMetaData.

See Also:
Serialized Form

Nested Class Summary
static class VoteMetaData.Outcome
          The Enum Outcome.
static class VoteMetaData.PoliticalPartyBehavior
          The Enum PoliticalPartyBehavior.
static class VoteMetaData.ProffessionalBehavior
          The Enum ProffessionalBehavior.
 
Constructor Summary
VoteMetaData()
          Instantiates a new vote meta data.
 
Method Summary
 Long getId()
          Gets the id.
 VoteMetaData.Outcome getOutcome()
          Gets the outcome.
 VoteMetaData.PoliticalPartyBehavior getPoliticalPartyBehavior()
          Gets the political party behavior.
 VoteMetaData.ProffessionalBehavior getProffessionalBehavior()
          Gets the proffessional behavior.
 ResourceType getResourceType()
          Gets the resource type.
 Long getVersion()
          Gets the version.
 void setId(Long id)
          Sets the id.
 void setOutcome(VoteMetaData.Outcome outcome)
          Sets the outcome.
 void setPoliticalPartyBehavior(VoteMetaData.PoliticalPartyBehavior politicalPartyBehavior)
          Sets the political party behavior.
 void setProffessionalBehavior(VoteMetaData.ProffessionalBehavior proffessionalBehavior)
          Sets the proffessional behavior.
 void setResourceType(ResourceType resourceType)
          Sets the resource type.
 void setVersion(Long version)
          Sets the version.
 
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
 

Constructor Detail

VoteMetaData

public VoteMetaData()
Instantiates a new vote meta data.

Method Detail

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getOutcome

public VoteMetaData.Outcome getOutcome()
Gets the outcome.

Returns:
the outcome

getPoliticalPartyBehavior

public VoteMetaData.PoliticalPartyBehavior getPoliticalPartyBehavior()
Gets the political party behavior.

Returns:
the political party behavior

getProffessionalBehavior

public VoteMetaData.ProffessionalBehavior getProffessionalBehavior()
Gets the proffessional behavior.

Returns:
the proffessional behavior

getResourceType

public ResourceType getResourceType()
Description copied from interface: Resource
Gets the resource type.

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

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

setId

public void setId(Long id)
Description copied from interface: PersistedModelObject
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setOutcome

public void setOutcome(VoteMetaData.Outcome outcome)
Sets the outcome.

Parameters:
outcome - the new outcome

setPoliticalPartyBehavior

public void setPoliticalPartyBehavior(VoteMetaData.PoliticalPartyBehavior politicalPartyBehavior)
Sets the political party behavior.

Parameters:
politicalPartyBehavior - the new political party behavior

setProffessionalBehavior

public void setProffessionalBehavior(VoteMetaData.ProffessionalBehavior proffessionalBehavior)
Sets the proffessional behavior.

Parameters:
proffessionalBehavior - the new proffessional behavior

setResourceType

public void setResourceType(ResourceType resourceType)
Description copied from interface: Resource
Sets the resource type.

Specified by:
setResourceType in interface Resource
Parameters:
resourceType - the new resource type

setVersion

public void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version


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