javax.cim
Class CIMValuedElement<E>

java.lang.Object
  extended by javax.cim.CIMElement
      extended by javax.cim.CIMTypedElement
          extended by javax.cim.CIMValuedElement<E>
Type Parameters:
E - : Type Parameter
All Implemented Interfaces:
Serializable, Comparable<CIMElement>
Direct Known Subclasses:
CIMArgument, CIMProperty, CIMQualifier, CIMQualifierType

public abstract class CIMValuedElement<E>
extends CIMTypedElement

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

See Also:
Serialized Form

Constructor Summary
protected CIMValuedElement(String pName, CIMDataType pType, E pValue)
          Super constructor for inherited classes.
 
Method Summary
 boolean equals(Object pObj)
          Compares this object against the specified object.
 E getValue()
          Returns the value for this CIM Element.
 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(String pName,
                           CIMDataType pType,
                           E 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.

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 E 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.

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


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