Package org.sblim.wbem.cim
Class CIMQualifiableElement
- java.lang.Object
-
- org.sblim.wbem.cim.CIMElement
-
- org.sblim.wbem.cim.CIMQualifiableElement
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
- Direct Known Subclasses:
CIMArgument
,CIMMethod
,CIMObject
,CIMParameter
,CIMProperty
public abstract class CIMQualifiableElement extends CIMElement implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vector
iQualifiers
-
Fields inherited from class org.sblim.wbem.cim.CIMElement
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CIMQualifiableElement()
protected
CIMQualifiableElement(java.lang.String pName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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.
-
-