com.remedy.cmdb.api
Class CMDBAttributeValue

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

public class CMDBAttributeValue
extends java.lang.Object

The CMDBAttributeValue class defines an Attribute Value class.


Constructor Summary
CMDBAttributeValue()
          Default constructor to create an empty attribute value.
CMDBAttributeValue(java.lang.String attributeName, Value attributeValue)
          Constructor to create an attribute value object with the provided name.
 
Method Summary
 java.lang.String getAttributeName()
          Gets the name of the attribute.
 Value getAttributeValue()
          Gets the value of the attribute.
 void setAttributeName(java.lang.String attributeName)
          Sets the name of the attribute.
 void setAttributeValue(Value attributeValue)
          Sets the value of the attribute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMDBAttributeValue

public CMDBAttributeValue()
Default constructor to create an empty attribute value.


CMDBAttributeValue

public CMDBAttributeValue(java.lang.String attributeName,
                          Value attributeValue)
Constructor to create an attribute value object with the provided name. and value.

Parameters:
attributeName - the name of the attribute
attributeValue - the value of the attribute
Throws:
java.lang.IllegalArgumentException - if attributeName length is longer than Constants.AR_MAX_NAME_SIZE
Method Detail

getAttributeName

public java.lang.String getAttributeName()
Gets the name of the attribute.

Returns:
the name of the attribute

getAttributeValue

public Value getAttributeValue()
Gets the value of the attribute.

Returns:
the value of the attribute

setAttributeName

public void setAttributeName(java.lang.String attributeName)
Sets the name of the attribute.

Parameters:
attributeName - the name of the attribute
Throws:
java.lang.IllegalArgumentException - if attributeName is empty or its length is longer than Constants.AR_MAX_NAME_SIZE

setAttributeValue

public void setAttributeValue(Value attributeValue)
Sets the value of the attribute.

Parameters:
attributeValue - the value of the attribute