javax.cim
Class CIMElement

java.lang.Object
  extended byjavax.cim.CIMElement
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CIMClass, javax.cim.CIMTypedElement

public abstract class CIMElement
extends java.lang.Object
implements java.io.Serializable

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.

Since:
JSR48 1.0.0
See Also:
Serialized Form

Constructor Summary
CIMElement(java.lang.String pName)
          Creates a new CIM element with the given name.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Takes a CIM element and returns true if it is equal to this CIM element.
 java.lang.String getName()
          Returns a string representing the name of a CIM element instance.
 int hashCode()
          Returns a hash codevalue for the CIM element.
 java.lang.String toString()
          Returns a String representation of the CIMElement.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CIMElement

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

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

equals

public boolean equals(java.lang.Object obj)
Takes a CIM element and returns 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 vector. <<<<<<< CIMElement.java

Parameters:
obj - The object to be compared a CIM element.
Returns:
True indicates the specified CIM element equals this CIM element. False indicates the CIM element does not equal this CIM element.

getName

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

Returns:
The name of this CIM element.

hashCode

public int hashCode()
Returns a hash codevalue for the CIM element. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

Returns:
A hash code value for this CIM element.

toString

public java.lang.String toString()
Returns a 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. S

Returns:
String representation of this CIM element.


Java™ WBEM (JSR48) 1.0.0 API