javax.cim
E
- : Type Parameterpublic abstract class CIMValuedElement<E> extends CIMTypedElement
CIMValuedElement
is the base class of all valued CIM
element.Modifier | Constructor and Description |
---|---|
protected |
CIMValuedElement(String pName,
CIMDataType pType,
E pValue)
Super constructor for inherited classes.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getDataType
compareTo, getName, hashCode
protected CIMValuedElement(String pName, CIMDataType pType, E pValue)
pType
- pValue
- public boolean equals(Object pObj)
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.equals
in class CIMTypedElement
pObj
- - The object to compare with.true
if the objects are the same; false
otherwise.Object.equals(java.lang.Object)
public E getValue()
null
is a valid value.public String toString()
toString
in class CIMTypedElement
String
representation of this CIM element.CIMTypedElement.toString()
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.