com.remedy.cmdb.api
Class CMDBClassNameKey

java.lang.Object
  extended bycom.remedy.cmdb.api.CMDBClassNameKey

public class CMDBClassNameKey
extends java.lang.Object

The CMDBClassNameKey class defines an CMDBClass key that contains a class name and a class namespace.


Constructor Summary
CMDBClassNameKey()
          Constructs a class key with an empty name and namespace.
CMDBClassNameKey(java.lang.String aClassName, java.lang.String aClassNamespace)
          Constructs a class key with the provided name and namespace.
 
Method Summary
 java.lang.String getClassName()
          Gets the name of the CMDBClass object.
 java.lang.String getClassNamespace()
          Gets the namespace of the CMDBClass object.
 void setClassName(java.lang.String aClassName)
          Sets the name of the CMDBClass object.
 void setClassNamespace(java.lang.String aClassNamespace)
          Sets the namespace of the CMDBClass object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMDBClassNameKey

public CMDBClassNameKey()
Constructs a class key with an empty name and namespace.


CMDBClassNameKey

public CMDBClassNameKey(java.lang.String aClassName,
                        java.lang.String aClassNamespace)
Constructs a class key with the provided name and namespace.

Parameters:
aClassName - the name of the CMDBClass
aClassNamespace - the namespace of the CMDBClass
Throws:
java.lang.IllegalArgumentException - if aClassName or aClassNamespace length is longer than Constants.AR_MAX_NAME_SIZE
Method Detail

getClassName

public java.lang.String getClassName()
Gets the name of the CMDBClass object.

Returns:
the class name for the object

getClassNamespace

public java.lang.String getClassNamespace()
Gets the namespace of the CMDBClass object.

Returns:
the class namespace for the object

setClassName

public void setClassName(java.lang.String aClassName)
Sets the name of the CMDBClass object.

Parameters:
aClassName - the name of CMDBClass object
Throws:
java.lang.IllegalArgumentException - if aClassName is empty or the length is longer than Constants.AR_MAX_NAME_SIZE

setClassNamespace

public void setClassNamespace(java.lang.String aClassNamespace)
Sets the namespace of the CMDBClass object.

Parameters:
aClassNamespace - the namespace of CMDBClass object
Throws:
java.lang.IllegalArgumentException - if aClassNamespace is empty or the length is longer than Constants.AR_MAX_NAME_SIZE