javax.cim

Class CIMElement

public abstract class CIMElement extends Object implements Serializable, Comparable<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(String pName)
Creates a new CIM element with the given name.
Method Summary
intcompareTo(CIMElement pObj)
Compares this element name to the CIMElement passed in.
StringgetName()
Returns a string representing the name of a CIM element instance.

Constructor Detail

CIMElement

public CIMElement(String pName)
Creates a new CIM element with the given name.

Parameters: pName - The string for the name of the element.

Method Detail

compareTo

public int compareTo(CIMElement pObj)
Compares this element name to the CIMElement passed in.

Parameters: pObj - the CIMElement to be compared.

Returns: a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

See Also: java.lang.Comparable#compareTo(Object)

getName

public String getName()
Returns a string representing the name of a CIM element instance.

Returns: The name of this CIM element.

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