public abstract class CIMTypedElement extends CIMElement
CIMTypedElement
is an abstract class that represents a CIM
element that contains just the data type, but no value.Constructor and Description |
---|
CIMTypedElement(java.lang.String pName,
CIMDataType pType)
Constructs a
CIMTypedElement with the given name and data
type. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object pObj)
Compares this object against the specified object.
|
CIMDataType |
getDataType()
Returns the
CIMDataType for this CIM Element. |
int |
hashCode()
Returns a hash code value for the CIM typed element.
|
java.lang.String |
toString()
Returns a
String representation of the CIM Element. |
compareTo, getName
public CIMTypedElement(java.lang.String pName, CIMDataType pType)
CIMTypedElement
with the given name and data
type.pName
- Name of the element.pType
- Data type of the element.public boolean equals(java.lang.Object pObj)
true
if and only if the argument is not null
and is a CIMTypedElement
that represents the same name and
type as this object.equals
in class CIMElement
pObj
- The object to compare with.true
if the objects are the same; false
otherwise.public CIMDataType getDataType()
CIMDataType
for this CIM Element.CIMDataType
of this CIM element.public int hashCode()
java.util.Hashtable
.hashCode
in class CIMElement
public java.lang.String toString()
String
representation of the CIM Element. This
method is intended to be used only for debugging purposes, and the format
of the returned string may vary between implementations. The returned
string may be empty but may not be null
.toString
in class CIMElement
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.