com.cisco.provisioning.cpe.api
Class NodeType

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

public final class NodeType
extends Object
implements Serializable

The NodeType class is used to represent the type of a Node.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Method Summary
 boolean equals(Object obj)
          Determines if this NodeType object is equal to the specified object.
 Node getNode(String nodeName)
          Returns a node of this type with the specified name.
static NodeType getNodeType(String nodeTypeName)
          Gets the NodeType object for the nodeTypeName specified.
 String getNodeTypeName()
          Returns the name of this node type.
 int hashCode()
          The hash code of this object.
 String toString()
          Returns a String description of this node type.
 
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

getNodeType

public static NodeType getNodeType(String nodeTypeName)
Gets the NodeType object for the nodeTypeName specified.

Parameters:
nodeTypeName - The name of the node type to retrieve
Returns:
NodeType object representing the specified nodeTypeName or null if nodeTypeName is null or empty or not alpha-numeric string.

getNodeTypeName

public String getNodeTypeName()
Returns the name of this node type.

Returns:
The name of this node type

getNode

public Node getNode(String nodeName)
Returns a node of this type with the specified name.

Returns:
node of this type with the specified name.

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 NodeType 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 type.

Overrides:
toString in class Object
Returns:
A String description of this node type