com.bmc.cmdb.api
Class CMDBAttributeValue

java.lang.Object
  extended by com.bmc.cmdb.api.CMDBAttributeValue

public class CMDBAttributeValue
extends java.lang.Object

The CMDBAttributeValue class allows you to specify a value for an attribute. AttributeName, which is passed as a parameter for this class, holds the name of the attribute for which you want to specify the value. Once you specify the attribute value, you can perform queries against it and update it.


Constructor Summary
CMDBAttributeValue()
          Creates an empty CMDBAttributeValue object.
CMDBAttributeValue(java.lang.String attributeName, Value attributeValue)
          Creates a CMDBAtributeValue object using the specified name and value.
 
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()
Creates an empty CMDBAttributeValue object.


CMDBAttributeValue

public CMDBAttributeValue(java.lang.String attributeName,
                          Value attributeValue)
Creates a CMDBAtributeValue object using the specified 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


(c) Copyright 2004-2007 BMC Software, Inc.