javax.cim
Class CIMTypedElement

java.lang.Object
  extended by javax.cim.CIMElement
      extended by 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

Class CIMTypedElement is the base class of all typed CIM element.

See Also:
Serialized Form

Constructor Summary
CIMTypedElement(java.lang.String pName, CIMDataType pType)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object pObj)
          Compares this object against the specified object.
 CIMDataType getDataType()
          Returns the CIMDataType for this CIM Element.
 java.lang.String toString()
          Returns the String representation of this CIMTypedElement FIXME: format?
 
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

CIMTypedElement

public CIMTypedElement(java.lang.String pName,
                       CIMDataType pType)
Constructor.

Parameters:
pName - - name of the element
pType - - type of the element
Method Detail

equals

public boolean equals(java.lang.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 CIMElement
Parameters:
pObj - - The object to compare with.
Returns:
true if the objects are the same; false otherwise.
See Also:
Object.equals(java.lang.Object)

getDataType

public CIMDataType getDataType()
Returns the CIMDataType for this CIM Element.

Returns:
CIMDataType of this CIM element.

toString

public java.lang.String toString()
Returns the String representation of this CIMTypedElement FIXME: format?

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


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