javax.cim

Class CIMElement

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 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.

getName

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

Returns: The name of this CIM element.

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