org.gersteinlab.tyna.webapp.data
Class NetworkAttr

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

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

        This class contains the information of a network attribute name and value pair.
        

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.String name
          Network attribute name.
protected  java.lang.Integer networkId
          Network ID.
protected  java.lang.String value
          Network attribute value.
 
Constructor Summary
NetworkAttr()
          Default constructor: creates an empty object.
NetworkAttr(java.lang.String name, java.lang.String value, java.lang.Integer networkId)
          Creates a new object that stores the supplied information.
 
Method Summary
 java.lang.String getName()
          Get the network attribute name.
 java.lang.Integer getNetworkId()
          Get the network ID.
 java.lang.String getValue()
          Get the network attribute value.
 void setName(java.lang.String name)
          Set the network attribute name.
 void setNetworkId(java.lang.Integer networkId)
          Set the network ID.
 void setValue(java.lang.String value)
          Set the network attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Network attribute name.


value

protected java.lang.String value
Network attribute value.


networkId

protected java.lang.Integer networkId
Network ID.

Constructor Detail

NetworkAttr

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


NetworkAttr

public NetworkAttr(java.lang.String name,
                   java.lang.String value,
                   java.lang.Integer networkId)
Creates a new object that stores the supplied information.

Parameters:
name - Network attribute name
value - Network attribute value
networkId - ID of the network
Method Detail

getName

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

Returns:
The network attribute name.

setName

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

Parameters:
name - The network attribute name.

getValue

public java.lang.String getValue()
Get the network attribute value.

Returns:
The network attribute value.

setValue

public void setValue(java.lang.String value)
Set the network attribute value.

Parameters:
value - The network attribute value.

getNetworkId

public java.lang.Integer getNetworkId()
Get the network ID.

Returns:
The network ID.

setNetworkId

public void setNetworkId(java.lang.Integer networkId)
Set the network ID.

Parameters:
networkId - The network ID.