org.gersteinlab.tyna.webapp.data
Class NetworkType

java.lang.Object
  extended by org.gersteinlab.tyna.webapp.data.NetworkType
All Implemented Interfaces:
java.io.Serializable

public class NetworkType
extends java.lang.Object
implements java.io.Serializable

        This class contains the information of a network type.
        

Version:
1.0 (April 24, 2006) Change History: 1.0 - Initial version
Author:
Kevin Yuk-Lap Yip
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer id
          Network type ID.
protected  java.lang.String name
          Network type name.
 
Constructor Summary
NetworkType()
          Default constructor: creates an empty object.
NetworkType(java.lang.Integer id, java.lang.String name)
          Creates a new object that stores the supplied information.
 
Method Summary
 java.lang.Integer getId()
          Get the network type ID.
 java.lang.String getName()
          Get the network type name.
 void setId(java.lang.Integer id)
          Set the network type ID.
 void setName(java.lang.String name)
          Set the network type name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.Integer id
Network type ID.


name

protected java.lang.String name
Network type name.

Constructor Detail

NetworkType

public NetworkType()
Default constructor: creates an empty object.


NetworkType

public NetworkType(java.lang.Integer id,
                   java.lang.String name)
Creates a new object that stores the supplied information.

Parameters:
id - Network type ID
name - Network type name
Method Detail

getId

public java.lang.Integer getId()
Get the network type ID.

Returns:
The network type ID.

setId

public void setId(java.lang.Integer id)
Set the network type ID.

Parameters:
id - The network type ID.

getName

public java.lang.String getName()
Get the network type name.

Returns:
The network type name.

setName

public void setName(java.lang.String name)
Set the network type name.

Parameters:
name - The network type name.