com.cisco.provisioning.cpe.api
Class Node

java.lang.Object
  extended by com.cisco.provisioning.cpe.api.Key
      extended by com.cisco.provisioning.cpe.api.Node
All Implemented Interfaces:
Serializable

public final class Node
extends Key

The Node class is used to represent device Nodes.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Method Summary
 boolean equals(Object obj)
          Determines if this Node object is equal to the specified object.
 KeyType getKeyType()
          Get the Key Type of this object.
static Node getNode(NodeType nodeType, String nodeName)
          Gets a Node object for the node type and name specified.
 String getNodeName()
          Returns the name of this node.
 NodeType getNodeType()
          Returns the Node Type of this node.
 int hashCode()
          The hash code of this object.
 String toString()
          Returns a String description of this Node.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

getNode

public static Node getNode(NodeType nodeType,
                           String nodeName)
Gets a Node object for the node type and name specified.

Parameters:
nodeType - node type of the node.
nodeName - The name of the node.
Returns:
Node object representing the specified nodeType and nodeName or null if nodeType is null or nodeName is empty or not alpha-numeric string

getNodeName

public String getNodeName()
Returns the name of this node.

Returns:
The name of this node

getNodeType

public NodeType getNodeType()
Returns the Node Type of this node.

Returns:
the Node Type of this node.

hashCode

public int hashCode()
The hash code of this object. See Object.hashCode() for more information

Overrides:
hashCode in class Object
Returns:
The hascode of this object

equals

public boolean equals(Object obj)
Determines if this Node object is equal to the specified object.

Overrides:
equals in class Object
Returns:
True if the specified object is equal to this object. False if the objects are not equal.

toString

public String toString()
Returns a String description of this Node.

Overrides:
toString in class Object
Returns:
A String description of this Node.

getKeyType

public KeyType getKeyType()
Get the Key Type of this object.

Specified by:
getKeyType in class Key
Returns:
the key type of this object.