|
|||||||||
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 p)
Compares this element name to the CIMElement passed in. |
boolean |
equals(Object o)
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 for the CIM element. |
String |
toString()
Returns a String representation of the CIMElement. |
Methods inherited from class java.lang.Object |
---|
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 p)
compareTo
in interface Comparable<CIMElement>
p
- the CIMElement to be compared.
ClassCastException
- if the specified object's type prevents it from being
compared to this Object.public boolean equals(Object o)
equals
in class Object
o
- The object to be compared a CIM element.
public String getName()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |