Contents
|
In file ../../src/Pegasus/Common/CIMQualifierList.h:
This class is for representing Qualifier lists in the CIM interface.
Documentation
This class is for representing Qualifier lists in the CIM interface.
Members are provided for accessing elements of the the internal property
list. There are none for modifying elements (the entire array must be
formed and passed to the constructor or replaced by calling set()).
Inheritance:
Public Methods
| CIMQualifierList ()
constructor - Constructs a NULL qualifier list
|
| ~CIMQualifierList ()
|
CIMQualifierList& | add (const CIMQualifier& qualifier)
add adds a single CIMQualifier to a CIMQualifierList
|
Uint32 | getCount () const
getCount - Returns the count of qualifiers in the list
|
CIMQualifier& | getQualifier (Uint32 index)
getQualifer - Gets the qaulifier defined at the index provided in the Qualifier list.
|
void | removeQualifier (Uint32 index)
removeQualifier - Removes the Qualifier defined by the index parameter
|
void | clear ()
Removes all the qualifiers from the list
|
Uint32 | find (const CIMName& name) const
find - Searches for a qualifier with the specified ` input name if it exists in the class
|
Boolean | exists (const CIMName& name) const
exists - Returns true if the qualifier with the specified name exists in the class
|
Boolean | isTrue (const CIMName& name) const
isTrue - Determines if the qualifier defined by the input parameter exists for the class, is Boolean, and has a value of true.
|
void | resolve ( DeclContext* declContext, const CIMNamespaceName & nameSpace, CIMScope scope, Boolean isInstancePart, CIMQualifierList& inheritedQualifiers, Boolean propagateQualifiers)
resolve - Resolves the qualifierList based on the information provided.
|
void | print (PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const
|
Boolean | identical (const CIMQualifierList& x) const
|
void | cloneTo (CIMQualifierList& x) const
|
CIMQualifierList& | addUnchecked (const CIMQualifier& qualifier)
Add qualifier without checking whether it already exists
|
- CIMQualifierList()
- constructor - Constructs a NULL qualifier list
- ~CIMQualifierList()
- CIMQualifierList& add(const CIMQualifier& qualifier)
- add adds a single CIMQualifier to a CIMQualifierList
- Uint32 getCount() const
- getCount - Returns the count of qualifiers in the list
- Returns:
- Zero origin count of qualifiers in the qualifier list.
- CIMQualifier& getQualifier(Uint32 index)
- getQualifer - Gets the qaulifier defined at the index provided
in the Qualifier list.
- Throws:
- - Throws OutofBounds exception of pso not within the
qualifier list.
ATTN: P0 KS Mar 2002 Add the outofbounds exception.
- Parameters:
- index - - The position in the qualifierlist containing the
qualifier.
- Returns:
- CIMQualifier object.
- void removeQualifier(Uint32 index)
- removeQualifier - Removes the Qualifier defined by
the index parameter
- Throws:
- IndexOutOfBoundsException if index not within
range of current qualifiers.
- void clear()
-
Removes all the qualifiers from the list
- Uint32 find(const CIMName& name) const
- find - Searches for a qualifier with the specified `
input name if it exists in the class
- Parameters:
- name - CIMName of the qualifier
to be found @return Position of the qualifier in the Class.
- Returns:
- Returns index of the qualifier found or PEG_NOT_FOUND
if not found.
- Boolean exists(const CIMName& name) const
- exists - Returns true if the qualifier with the
specified name exists in the class
- Parameters:
- name - CIMName name of the qualifier object being tested.
- Returns:
- True if the qualifier exits in the list. Otherwise
false is returned.
- Boolean isTrue(const CIMName& name) const
- isTrue - Determines if the qualifier defined by
the input parameter exists for the class, is Boolean, and
has a value of true.
This function is useful to quickly determine the state of a
qualifier.
- Parameters:
- - CIMName containing the qualifier name.
- Returns:
- Boolean True if the qualifier exists,
- void resolve( DeclContext* declContext, const CIMNamespaceName & nameSpace, CIMScope scope, Boolean isInstancePart, CIMQualifierList& inheritedQualifiers, Boolean propagateQualifiers)
- resolve - Resolves the qualifierList based on the information provided.
The resolved qualifiers are the result of validating and testing the
qualifiers against the inherited qualifiers and qualifier declarations.
The qualifier list contains the set of resolved qualifiers when the
function is complete.
Resolution includes:
1. Determining if the qualifier is declared (obtainable form
declContext).
2. Qualifier is same type as declaration
3. Valid for the scope provided (Qualifier scope contains the provided
scope).
4. Whether qualifier can be overridden.
5. Whether it should be propagated to subclass
If a qualifier can be overridden it is put into the qualifiers array.
- Throws:
- - There are a number of different
- Parameters:
- declContext - Declaration context for this resolution (ex
repository, simple)
nameSpace - Namespace in which to find the declaration.
scope - - Scope of the entity doing the resolution (ex. Class,
association, etc.)
isInstancePart - - TBD
inheritedQualifiers - - CimQualifierList defining List of
inherited qualifiers
propagateQualifiers - Boolean indicator whether to propagate
qualifiers.
- void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const
- Boolean identical(const CIMQualifierList& x) const
- void cloneTo(CIMQualifierList& x) const
- CIMQualifierList& addUnchecked(const CIMQualifier& qualifier)
- Add qualifier without checking whether it already exists
- This class has no child classes.
- Friends:
- class CIMPropertyInternal
Alphabetic index HTML hierarchy of classes or Java
|