|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.cim.CIMElement
public abstract class CIMElement
CIMElement represents the CIM element meta construct as defined in the CIM Infrastructure Specification. It is an abstract base class used for any CIM Element.
Constructor Summary | |
---|---|
CIMElement(java.lang.String pName)
Creates a new CIM element with the given name. |
Method Summary | |
---|---|
int |
compareTo(CIMElement pObj)
Compares this element name to the CIMElement passed in. |
boolean |
equals(java.lang.Object pObj)
Takes a CIM element and returns true if it is equal to this
CIM element. |
java.lang.String |
getName()
Returns a string representing the name of a CIM element instance. |
int |
hashCode()
Returns a hashcode value for the CIM element. |
java.lang.String |
toString()
Returns a String representation of the
CIMElement . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CIMElement(java.lang.String pName)
pName
- - The string for the name of the element.Method Detail |
---|
public int compareTo(CIMElement pObj)
compareTo
in interface java.lang.Comparable<CIMElement>
pObj
- - the CIMElement to be compared.
Comparable.compareTo(Object)
public boolean equals(java.lang.Object pObj)
true
if it is equal to this
CIM element. Otherwise, it returns false
. Useful for
comparing two CIM elements, for example, to determine whether a CIM
element exists in a vector.
equals
in class java.lang.Object
pObj
- - The object to be compared a CIM element.Object.equals(java.lang.Object)
public java.lang.String getName()
public int hashCode()
java.util.Hashtable
.
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
String
representation of the
CIMElement
. This method is intended to be used only for
debugging purposes. The format of the returned string may vary between
implementations. The returned string may be empty but may not be
null
toString
in class java.lang.Object
String
representation of this CIM element.Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |