com.cisco.provisioning.cpe.api
Class NodeName

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

public final class NodeName
extends Key
implements Serializable

The NodeName class is used to represent device Node name.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Method Summary
 boolean equals(Object obj)
          Determines if this NodeName object is equal to the specified object.
 KeyType getKeyType()
          Get the Key Type of this object.
 String getNodeName()
          Returns the name of this node.
static NodeName getNodeName(String nodeName)
          Gets a NodeName object.
 int hashCode()
          The hash code of this object.
 String toString()
          Returns a String description of this NodeName.
 
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

getNodeName

public static NodeName getNodeName(String nodeName)
Gets a NodeName object.

Parameters:
nodeName - The name of the node.
Returns:
NodeName object. 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

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 NodeName 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 NodeName.

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

getKeyType

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

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