Class CIMTypedElement
java.lang.Object
javax.cim.CIMElement
javax.cim.CIMTypedElement
- All Implemented Interfaces:
Serializable, Comparable<CIMElement>
- Direct Known Subclasses:
CIMMethod, CIMParameter, CIMValuedElement
CIMTypedElement
is an abstract class that represents a CIM
element that contains just the data type, but no value.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCIMTypedElement
(String pName, CIMDataType pType) Constructs aCIMTypedElement
with the given name and data type. -
Method Summary
Methods inherited from class CIMElement
compareTo, getName
-
Constructor Details
-
CIMTypedElement
Constructs aCIMTypedElement
with the given name and data type.- Parameters:
pName
- Name of the element.pType
- Data type of the element.
-
-
Method Details
-
equals
Compares this object against the specified object. The result istrue
if and only if the argument is notnull
and is aCIMTypedElement
that represents the same name and type as this object.- Overrides:
equals
in classCIMElement
- Parameters:
pObj
- The object to compare with.- Returns:
true
if the objects are the same;false
otherwise.
-
getDataType
Returns theCIMDataType
for this CIM Element.- Returns:
CIMDataType
of this CIM element.
-
hashCode
public int hashCode()Returns a hash code value for the CIM typed element. This method is supported for the benefit of hashtables such as those provided byjava.util.Hashtable
.- Overrides:
hashCode
in classCIMElement
- Returns:
- A hash code value for this CIM typed element.
-
toString
Returns aString
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 benull
.- Overrides:
toString
in classCIMElement
- Returns:
- String representation of this element.
-