org.sblim.wbem.cim
Class CIMQualifiableElement

java.lang.Object
  extended byorg.sblim.wbem.cim.CIMElement
      extended byorg.sblim.wbem.cim.CIMQualifiableElement
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Direct Known Subclasses:
CIMArgument, CIMMethod, CIMObject, CIMParameter, CIMProperty

public abstract class CIMQualifiableElement
extends CIMElement
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.util.Vector iQualifiers
           
 
Fields inherited from class org.sblim.wbem.cim.CIMElement
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
 
Constructor Summary
protected CIMQualifiableElement()
           
protected CIMQualifiableElement(java.lang.String pName)
           
 
Method Summary
 void addQualifier(CIMQualifier pQualifier)
          Adds the specified qualifier to this CIM Element.
 CIMQualifier getQualifier(java.lang.String pName)
          Gets the specified qualfier, it exits on the CIM Element.
 java.util.Vector getQualifiers()
          Gets the list of the CIMQualifiers specified for this CIMElement.
 boolean removeQualifier(java.lang.String pName)
          Removes the specified qualifier.
 void setQualifiers(java.util.Vector pQualifiers)
          Replaces the CIMQualifiers for this CIMElement, with the specifed CIMQualifiers.
 
Methods inherited from class org.sblim.wbem.cim.CIMElement
appendTab, assign, compareTo, equals, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iQualifiers

protected java.util.Vector iQualifiers
Constructor Detail

CIMQualifiableElement

protected CIMQualifiableElement()

CIMQualifiableElement

protected CIMQualifiableElement(java.lang.String pName)
Method Detail

addQualifier

public void addQualifier(CIMQualifier pQualifier)
Adds the specified qualifier to this CIM Element. If the qualifer already exits, nothing is changed.

Parameters:
pQualifier - The qualifier

getQualifier

public CIMQualifier getQualifier(java.lang.String pName)
Gets the specified qualfier, it exits on the CIM Element.

Parameters:
pName - The name of the qualifier.
Returns:
null if the qualifier does not exits, otherwise returns the CIMQualifier.

setQualifiers

public void setQualifiers(java.util.Vector pQualifiers)
Replaces the CIMQualifiers for this CIMElement, with the specifed CIMQualifiers.

Parameters:
pQualifiers - a Vector of CIMQualifier objects.

getQualifiers

public java.util.Vector getQualifiers()
Gets the list of the CIMQualifiers specified for this CIMElement.

Returns:
a Vector of CIMQualifier objects.

removeQualifier

public boolean removeQualifier(java.lang.String pName)
Removes the specified qualifier.

Parameters:
pName - a String representing the CIMQualifier name.
Returns:
true if the qualifier was successfully removed, otherwise returns false.


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