|
||||||||||
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
is an abstract base class that represents a CIM
Element as defined by the Distributed Management Task Force (DMTF) CIM Infrastructure Specification (DSP004).
Constructor Summary | |
---|---|
CIMElement(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(Object pObj)
Takes a CIM element and returns true if it is equal to this
CIM element. |
String |
getName()
Returns a string representing the name of a CIM element instance. |
int |
hashCode()
Returns a hash code value for the CIM element. |
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(String pName)
pName
- The string for the name of the element.Method Detail |
---|
public int compareTo(CIMElement pObj)
compareTo
in interface Comparable<CIMElement>
pObj
- The CIMElement to be compared.
public boolean equals(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 Collection.
equals
in class Object
pObj
- The object to be compared a CIM element.
true
indicates the specified CIM element equals this
CIM element, false
indicates the CIM element does
not equal this CIM element.public String getName()
public int hashCode()
java.util.Hashtable
.
hashCode
in class Object
public 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 Object
String
representation of this CIM element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |