Package javax.cim
Class CIMTypedElement
- java.lang.Object
-
- javax.cim.CIMElement
-
- javax.cim.CIMTypedElement
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CIMElement>
- Direct Known Subclasses:
CIMMethod,CIMParameter,CIMValuedElement
public abstract class CIMTypedElement extends CIMElement
CIMTypedElementis an abstract class that represents a CIM element that contains just the data type, but no value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CIMTypedElement(java.lang.String pName, CIMDataType pType)Constructs aCIMTypedElementwith the given name and data type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object pObj)Compares this object against the specified object.CIMDataTypegetDataType()Returns theCIMDataTypefor this CIM Element.inthashCode()Returns a hash code value for the CIM typed element.java.lang.StringtoString()Returns aStringrepresentation of the CIM Element.-
Methods inherited from class javax.cim.CIMElement
compareTo, getName
-
-
-
-
Constructor Detail
-
CIMTypedElement
public CIMTypedElement(java.lang.String pName, CIMDataType pType)Constructs aCIMTypedElementwith the given name and data type.- Parameters:
pName- Name of the element.pType- Data type of the element.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object pObj)
Compares this object against the specified object. The result istrueif and only if the argument is notnulland is aCIMTypedElementthat represents the same name and type as this object.- Overrides:
equalsin classCIMElement- Parameters:
pObj- The object to compare with.- Returns:
trueif the objects are the same;falseotherwise.
-
getDataType
public CIMDataType getDataType()
Returns theCIMDataTypefor this CIM Element.- Returns:
CIMDataTypeof 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:
hashCodein classCIMElement- Returns:
- A hash code value for this CIM typed element.
-
toString
public java.lang.String toString()
Returns aStringrepresentation 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:
toStringin classCIMElement- Returns:
- String representation of this element.
-
-