org.directdemocracyportal.democracy.model.world
Class Election

Package class diagram package Election
java.lang.Object
  extended by org.directdemocracyportal.democracy.model.core.BaseEntity
      extended by org.directdemocracyportal.democracy.model.world.Election
All Implemented Interfaces:
java.io.Serializable

@Entity
public class Election
extends BaseEntity

The Class Election.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Election()
          Instantiates a new election.
 
Method Summary
Modifier and Type Method and Description
 Government getGovernment()
          Gets the government.
 java.lang.Long getId()
          Gets the id.
 java.lang.String getName()
          Gets the name.
 ElectionType getType()
          Gets the type.
 void setGovernment(Government government)
          Sets the government.
 void setId(java.lang.Long id)
          Sets the id.
 void setName(java.lang.String name)
          Sets the name.
 void setType(ElectionType type)
          Sets the type.
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity
isNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Election

public Election()
Instantiates a new election.

Method Detail

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getId

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

Specified by:
getId in class BaseEntity
Returns:
the id

setId

public void setId(java.lang.Long id)
Sets the id.

Parameters:
id - the new id

getType

public ElectionType getType()
Gets the type.

Returns:
the type

setType

public void setType(ElectionType type)
Sets the type.

Parameters:
type - the new type

getGovernment

public Government getGovernment()
Gets the government.

Returns:
the government

setGovernment

public void setGovernment(Government government)
Sets the government.

Parameters:
government - the new government


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.