org.sblim.wbem.cim

Class CIMQualifiableElement

Implemented Interfaces:
Comparable, Serializable
Known Direct Subclasses:
CIMArgument, CIMMethod, CIMObject, CIMParameter, CIMProperty

public abstract class CIMQualifiableElement
extends CIMElement
implements Serializable

CIMQualifiableElement.java (C) Copyright IBM Corp. 2005, 2006 THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Common Public License from http://www.opensource.org/licenses/cpl1.0.php

Field Summary

protected Vector
iQualifiers

Fields inherited from class org.sblim.wbem.cim.CIMElement

CLOSING_BRAKET, EMPTY, OPENING_BRAKET, iName

Constructor Summary

CIMQualifiableElement()
Default ctor.
CIMQualifiableElement(String pName)
Constructs a CIMElement with a given name

Method Summary

void
addQualifier(CIMQualifier pQualifier)
Adds the specified qualifier to this CIM Element.
CIMQualifier
getQualifier(String pName)
Gets the specified qualfier, it exits on the CIM Element.
Vector
getQualifiers()
Gets the list of the CIMQualifiers specified for this CIMElement.
boolean
removeQualifier(String pName)
Removes the specified qualifier.
void
setQualifiers(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

Field Details

iQualifiers

protected Vector iQualifiers

Constructor Details

CIMQualifiableElement

protected CIMQualifiableElement()
Default ctor.

CIMQualifiableElement

protected CIMQualifiableElement(String pName)
Constructs a CIMElement with a given name
Parameters:
pName - The name

Method Details

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

getQualifiers

public Vector getQualifiers()
Gets the list of the CIMQualifiers specified for this CIMElement.
Returns:
a Vector of CIMQualifier objects.

removeQualifier

public boolean removeQualifier(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.

setQualifiers

public void setQualifiers(Vector pQualifiers)
Replaces the CIMQualifiers for this CIMElement, with the specifed CIMQualifiers.
Parameters:
pQualifiers - a Vector of CIMQualifier objects.

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