com.cisco.provisioning.cpe.api
Class FQDN

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

public final class FQDN
extends DeviceID
implements Serializable

Creates a new FQDN device identifier.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
FQDN(String deviceId)
          Use this constructor to create a new FQDN device identifier.
 
Method Summary
 boolean equals(Object obj)
          Determines if this FQDN object is equal to the specified object.
 KeyType getKeyType()
          Get the Key Type of this object.
 int hashCode()
          The hash code of this object.
 boolean validate()
          Validate the id string for correct format.
 
Methods inherited from class com.cisco.provisioning.cpe.api.DeviceID
getDeviceId, getInstance, toString
 
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
Constructor Detail

FQDN

public FQDN(String deviceId)
Use this constructor to create a new FQDN device identifier.

This method will throw an APIArgumentException if the specified FQDN string identifier is invalid or is specified as null.

Parameters:
deviceId - The string containing the FQDN identifer. This value is required and cannot be specified as null. If it is specified as null the runtime exception APIArgumentException will be thrown.
Method Detail

hashCode

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

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

equals

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

Overrides:
equals in class DeviceID
Returns:
true if the specified object is equal to this object. false if the objects are not equal.

validate

public boolean validate()
Validate the id string for correct format.

Specified by:
validate in class DeviceID
Returns:
true if format is valid. false if format is invalid.

getKeyType

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

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