org.gswing.components.common
Class SimpleConstituency

java.lang.Object
  extended by org.gswing.components.common.SimpleConstituency
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Constituency

public class SimpleConstituency
extends Object
implements Serializable

A simple constituency is a constituency that knows nothing about its parent constituency.

See Also:
Serialized Form

Constructor Summary
SimpleConstituency(String name, int constituencyNo)
          Constructor.
 
Method Summary
 int getConstituencyNo()
          Get the constituency's unique constituency number.
 String getName()
          Get the constituency name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleConstituency

public SimpleConstituency(String name,
                          int constituencyNo)
Constructor.

Parameters:
name - The constituency name.
constituencyNo - The number in the database.
Method Detail

getName

public String getName()
Get the constituency name

Returns:
the constituency name.

getConstituencyNo

public int getConstituencyNo()
Get the constituency's unique constituency number.

Returns:
The constituency number as defined in the database.


Copyright © 2008. All Rights Reserved.