public abstract class CIMElement extends Object implements Serializable, Comparable<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 and Description |
---|
CIMElement(String pName)
Creates a new CIM element with the given name.
|
Modifier and Type | Method and Description |
---|---|
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 . |
public CIMElement(String pName)
pName
- The string for the name of the element.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.public String getName()
public int hashCode()
java.util.Hashtable
.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
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.