javax.cim

Class CIMValuedElement

public abstract class CIMValuedElement extends CIMTypedElement

Class CIMValuedElement is the base class of all valued CIM element.
Constructor Summary
protected CIMValuedElement(String pName, CIMDataType pType, Object pValue)
Super constructor for inherited classes.
Method Summary
booleanequals(Object pObj)
Compares this object against the specified object.
ObjectgetValue()
Returns the value for this CIM Element.
StringtoString()
Returns the String representation of the valued element.

Constructor Detail

CIMValuedElement

protected CIMValuedElement(String pName, CIMDataType pType, Object pValue)
Super constructor for inherited classes.

Parameters: pType pValue

Method Detail

equals

public boolean equals(Object pObj)
Compares this object against the specified object. The result is true if and only if the argument is not null and is a CIMValuedObject that represents the same name, type and value as this object.

Parameters: pObj - The object to compare with.

Returns: true if the objects are the same; false otherwise.

See Also: java.lang.Object#equals(java.lang.Object)

getValue

public Object getValue()
Returns the value for this CIM Element.

Returns: The value of the CIM Element. null is a valid value.

toString

public String toString()
Returns the String representation of the valued element.

See Also: toString

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.