javax.cim
Class CIMValuedElement

java.lang.Object
  extended by javax.cim.CIMElement
      extended by javax.cim.CIMTypedElement
          extended by javax.cim.CIMValuedElement
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
CIMArgument, CIMProperty, CIMQualifier, CIMQualifierType

public abstract class CIMValuedElement
extends CIMTypedElement

Class CIMValuedElement is the base class of all valued CIM element.

See Also:
Serialized Form

Constructor Summary
protected CIMValuedElement(java.lang.String pName, CIMDataType pType, java.lang.Object pValue)
          Super constructor for inherited classes.
 
Method Summary
 boolean equals(java.lang.Object pObj)
          Compares this object against the specified object.
 java.lang.Object getValue()
          Returns the value for this CIM Element.
 java.lang.String toString()
          Returns the String representation of the valued element.
 
Methods inherited from class javax.cim.CIMTypedElement
getDataType
 
Methods inherited from class javax.cim.CIMElement
compareTo, getName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CIMValuedElement

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

Parameters:
pType -
pValue -
Method Detail

equals

public boolean equals(java.lang.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.

Overrides:
equals in class CIMTypedElement
Parameters:
pObj - - The object to compare with.
Returns:
true if the objects are the same; false otherwise.
See Also:
Object.equals(java.lang.Object)

getValue

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

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

toString

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

Overrides:
toString in class CIMTypedElement
Returns:
String representation of this CIM element.
See Also:
CIMTypedElement.toString()


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