com.bankframe.services.notification
Class Node

java.lang.Object
  extended bycom.bankframe.services.notification.Node
All Implemented Interfaces:
java.io.Serializable

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

This class encapsulates a nodes attributes. This class is made mutable via the getters/setters defined.

Author:
jotoole
See Also:
Serialized Form

Field Summary
static java.lang.String DP_NAME
           
static java.lang.String ID_KEY
           
static java.lang.String IP_KEY
           
static java.lang.String PORT_KEY
           
 
Constructor Summary
Node()
          Default constructor
Node(DataPacket thisPacket)
          This constructor is a convenient constructor allowing for the creation of a Node directly from a datapacket
Node(java.lang.String ID, java.lang.String IP, java.lang.String PORT)
          Constructor
 
Method Summary
 java.lang.String getID()
          This getter returns the ID attribute
 java.lang.String getIP()
          This getter returns the IP attribute
 java.lang.String getPORT()
          This getter returns the PORT attribute
 void setID(java.lang.String ID)
          This method sets the ID attribute
 void setIP(java.lang.String IP)
          This method sets the IP attribute
 void setPORT(java.lang.String PORT)
          This method sets the PORT attribute
 DataPacket toDataPacket()
          Returns a datapacket representation of the node class
 java.lang.String toString()
          This method overwrites the behaviour of the java.lang.Object.toString() to return a String representation of the atttributes of the node class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_KEY

public static final java.lang.String ID_KEY
See Also:
Constant Field Values

IP_KEY

public static final java.lang.String IP_KEY
See Also:
Constant Field Values

PORT_KEY

public static final java.lang.String PORT_KEY
See Also:
Constant Field Values

DP_NAME

public static final java.lang.String DP_NAME
See Also:
Constant Field Values
Constructor Detail

Node

public Node()
Default constructor


Node

public Node(java.lang.String ID,
            java.lang.String IP,
            java.lang.String PORT)
Constructor


Node

public Node(DataPacket thisPacket)
This constructor is a convenient constructor allowing for the creation of a Node directly from a datapacket

Method Detail

getID

public java.lang.String getID()
This getter returns the ID attribute

Returns:
String

getIP

public java.lang.String getIP()
This getter returns the IP attribute

Returns:
String

getPORT

public java.lang.String getPORT()
This getter returns the PORT attribute

Returns:
String

setID

public void setID(java.lang.String ID)
This method sets the ID attribute


setIP

public void setIP(java.lang.String IP)
This method sets the IP attribute


setPORT

public void setPORT(java.lang.String PORT)
This method sets the PORT attribute


toString

public java.lang.String toString()
This method overwrites the behaviour of the java.lang.Object.toString() to return a String representation of the atttributes of the node class


toDataPacket

public DataPacket toDataPacket()
Returns a datapacket representation of the node class

Returns:
DataPacket


Copyright © 2004 Siebel Systems, Inc. All rights reserved.