[an error occurred while processing this directive]
[an error occurred while processing this directive] [an error occurred while processing this directive]

Pegasus CIM Object Broker Documentation

[an error occurred while processing this directive]


[an error occurred while processing this directive]

 

Contents

o Introduction
o Objectives
o Overview
o Credits
o Pegasus Architecture
   o Design Goals
   o The Broker
   o Pegasus Providers.
   o Extension Services
   o Pegasus Clients.
   o Functional Flow
o Pegasus Components
   o Component Descriptions
   o Pegasus Directory Structure
o Pegasus Utilization
   o Pegasus Availability
   o Pegasus Installation
   o Pegasus Operation
   o Pegasus CIM Clients
   o Pegasus Providers
   o Pegasus MOF Compiler
o Programming Pegasus
   o CIM Objects in Pegasus
   o CIM Object Table
   o Class Definitions
o Pegasus Interfaces
   o CIM Operations over HTTP
   o Pegasus Client Interfaces
   o Pegasus Provider Interfaces
   o Pegasus Service Extension Interfaces
   o Repository Interfaces
o Writing Providers.
o Glossary
o Pegasus Code Examples
   o Client Examples
   o Client Coding Examples
   o Provider Coding Examples
o Document References
o Pegausus FAQ
o
In file ../../src/Pegasus/Common/CIMProperty.h:

class PEGASUS_COMMON_LINKAGE CIMProperty

The CIMProperty class represents the DMTF standard CIM property definition.

Documentation

The CIMProperty class represents the DMTF standard CIM property definition. A CIMProperty is generally defined in the context of a CIMClass or CIMInstance. A CIMProperty consists of:
  • A CIMName containing the name of the property
  • A CIMType defining the property type
  • A Boolean indicating whether it is an Array property
  • A Uint32 indicating the size of the Array, if the property is an Array property
  • A CIMName containing the reference class name for this property, if the property is of reference type
  • A CIMValue specifying the property value
  • Zero or more CIMQualifier objects
In addition, a CIMProperty has these internal attributes:
  • propagated - An attribute defining whether this CIMProperty is propagated from a superclass. Note that this is normally set as part of completing the definition of objects (resolving) when they are created as part of a CIM schema and is NOT automatically set when creating a property object. It can only be logically set in context of the schema in which the CIMProperty is defined.
  • classOrigin - An attribute defining the class in which this CIMProperty was originally defined. This is normally set within the context of the schema in which the CIMProperty is defined. This attribute is available from objects retrieved from the CIM Server, for example, and provides information on the defintion of this property in the class hierarchy. The propagated and ClassOrigin attributes can be used together to determine if properties originated with this object or were inherited from higher levels of the hiearchy.

The CIMProperty class uses a shared representation model, such that multiple CIMProperty objects may refer to the same data copy. Assignment and copy operators create new references to the same data, not distinct copies. An update to a CIMProperty object affects all the CIMProperty objects that refer to the same data copy. The data remains valid until all the CIMProperty objects that refer to it are destructed. A separate copy of the data may be created using the clone method.


Inheritance:


Public Methods

[more] CIMProperty ()
Constructs an uninitialized CIMProperty object.
[more] CIMProperty (const CIMProperty& x)
Constructs a CIMProperty object from the value of a specified CIMProperty object, so that both objects refer to the same data copy.
[more] CIMProperty ( const CIMName& name, const CIMValue& value, Uint32 arraySize = 0, const CIMName& referenceClassName = CIMName(), const CIMName& classOrigin = CIMName(), Boolean propagated = false)
Constructs a CIMProperty object with the specified attributes.
[more] ~CIMProperty ()
Destructs the CIMProperty object
[more]CIMProperty& operator= (const CIMProperty& x)
Assigns the value of the specified CIMProperty object to this object, so that both objects refer to the same data copy.
[more]const CIMName& getName () const
Gets the name of the property.
[more]void setName (const CIMName& name)
Sets the property name.
[more]const CIMValue& getValue () const
Gets the property value.
[more]CIMType getType () const
Gets the property type.
[more]Boolean isArray () const
Checks whether the property is an Array property.
[more]void setValue (const CIMValue& value)
Sets the property value.
[more]Uint32 getArraySize () const
Gets the array size for the property.
[more]const CIMName& getReferenceClassName () const
Gets the reference class name for the property.
[more]const CIMName& getClassOrigin () const
Gets the class in which this property is locally defined.
[more]void setClassOrigin (const CIMName& classOrigin)
Sets the classOrigin attribute with the specified class name.
[more]Boolean getPropagated () const
Tests the propagated attribute of the property.
[more]void setPropagated (Boolean propagated)
Sets the propagated attribute.
[more]CIMProperty& addQualifier (const CIMQualifier& x)
Adds a qualifier to the property.
[more]Uint32 findQualifier (const CIMName& name) const
Finds a qualifier by name.
[more]CIMQualifier getQualifier (Uint32 index)
Gets the qualifier at the specified index.
[more]CIMConstQualifier getQualifier (Uint32 index) const
Gets the qualifier at the specified index.
[more]void removeQualifier (Uint32 index)
Removes a qualifier from the property.
[more]Uint32 getQualifierCount () const
Gets the number of qualifiers in the property.
[more]Boolean identical (const CIMConstProperty& x) const
Compares the property with another property.
[more]CIMProperty clone () const
Makes a deep copy of the property.
[more]Boolean isUninitialized () const
Determines whether the object has been initialized.

o CIMProperty()
Constructs an uninitialized CIMProperty object. A method invocation on an uninitialized object will result in the throwing of an UninitializedObjectException. An uninitialized object may be converted into an initialized object only by using the assignment operator with an initialized object.

o CIMProperty(const CIMProperty& x)
Constructs a CIMProperty object from the value of a specified CIMProperty object, so that both objects refer to the same data copy.
Parameters:
x - The CIMProperty object from which to construct a new CIMProperty object.

o CIMProperty( const CIMName& name, const CIMValue& value, Uint32 arraySize = 0, const CIMName& referenceClassName = CIMName(), const CIMName& classOrigin = CIMName(), Boolean propagated = false)
Constructs a CIMProperty object with the specified attributes.
Throws:
TypeMismatchException If the property is of reference type and referenceClassName is null or if the property is not of reference type and referenceClassName is not null.
TypeMismatchException If the property is an Array property and arraySize is not zero.
UninitializedObjectException If the property name is null.
Parameters:
name - A CIMName specifying the name of the property.
value - A CIMValue specifying the property value, and implicitly defining the property type and whether the property is an Array property.
arraySize - A Uint32 indicating the size of the Array, if the property is an Array property. The default value of zero indicates a variable size array.
referenceClassName - A CIMName containing the reference class name for this property, if the property is of reference type.
classOrigin - A CIMName indicating the class in which the property is locally defined (optional).
propagated - A Boolean indicating whether the property is local to the class or instance in which it appears or was propagated (without modification) from other schema.

o ~CIMProperty()
Destructs the CIMProperty object

oCIMProperty& operator=(const CIMProperty& x)
Assigns the value of the specified CIMProperty object to this object, so that both objects refer to the same data copy.
Parameters:
x - The CIMProperty object from which to assign this CIMProperty object.
Returns:
A reference to this CIMProperty object.

oconst CIMName& getName() const
Gets the name of the property.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMName containing the name of the property.

ovoid setName(const CIMName& name)
Sets the property name.
Throws:
UninitializedObjectException If the object is not initialized.
Exception If the object is already contained by CIMClass, CIMInstance or CIMObject
Parameters:
name - A CIMName containing the new name of the property.

oconst CIMValue& getValue() const
Gets the property value.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMValue containing the property value.

oCIMType getType() const
Gets the property type.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMType containing the property type.

oBoolean isArray() const
Checks whether the property is an Array property.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
True if the property is an Array property, false otherwise.

ovoid setValue(const CIMValue& value)
Sets the property value.
Throws:
UninitializedObjectException If the object is not initialized.
Parameters:
value - A CIMValue containing the new value of the property.

oUint32 getArraySize() const
Gets the array size for the property.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
Uint32 array size.

oconst CIMName& getReferenceClassName() const
Gets the reference class name for the property.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMName containing the reference class name for the property if the property is of reference type, a null CIMName otherwise.

oconst CIMName& getClassOrigin() const
Gets the class in which this property is locally defined. This information is normally available with properties that are part of schema returned from a CIM Server.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
CIMName containing the classOrigin attribute.

ovoid setClassOrigin(const CIMName& classOrigin)
Sets the classOrigin attribute with the specified class name. Normally this method is used internally by a CIM Server when defining properties in the context of a schema.
Throws:
UninitializedObjectException If the object is not initialized.
Parameters:
classOrigin - A CIMName specifying the name of the class of origin for the property.

oBoolean getPropagated() const
Tests the propagated attribute of the property. The propagated attribute indicates whether this property was propagated from a higher-level class. Normally this attribute is set as part of defining a property in the context of a schema. It is set in properties retrieved from a CIM Server.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
True if property is propagated; otherwise, false.

ovoid setPropagated(Boolean propagated)
Sets the propagated attribute. Normally this is used by a CIM Server when defining a property in the context of a schema.
Throws:
UninitializedObjectException If the object is not initialized.
Parameters:
propagated - A Boolean indicating whether the property is propagated.

oCIMProperty& addQualifier(const CIMQualifier& x)
Adds a qualifier to the property.
Throws:
AlreadyExistsException If a qualifier with the same name already exists in the CIMProperty.
UninitializedObjectException If the object is not initialized.
Parameters:
x - The CIMQualifier to be added.
Returns:
A reference to this CIMProperty object.

oUint32 findQualifier(const CIMName& name) const
Finds a qualifier by name.
Throws:
UninitializedObjectException If the object is not initialized.
Parameters:
name - A CIMName specifying the name of the qualifier to be found.
Returns:
Index of the qualifier if found or PEG_NOT_FOUND if not found.

oCIMQualifier getQualifier(Uint32 index)
Gets the qualifier at the specified index.
Throws:
IndexOutOfBoundsException If the index is outside the range of qualifiers available for the CIMProperty.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the qualifier to be retrieved.
Returns:
The CIMQualifier object at the specified index.

oCIMConstQualifier getQualifier(Uint32 index) const
Gets the qualifier at the specified index.
Throws:
IndexOutOfBoundsException If the index is outside the range of qualifiers available for the CIMProperty.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the qualifier to be retrieved.
Returns:
The CIMConstQualifier object at the specified index.

ovoid removeQualifier(Uint32 index)
Removes a qualifier from the property.
Throws:
IndexOutOfBoundsException If the index is outside the range of qualifiers available for the CIMProperty.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the qualifier to remove.

oUint32 getQualifierCount() const
Gets the number of qualifiers in the property.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
An integer count of the qualifiers in the CIMProperty.

oBoolean identical(const CIMConstProperty& x) const
Compares the property with another property.
Throws:
UninitializedObjectException If either of the objects is not initialized.
Parameters:
x - The CIMConstProperty to be compared.
Returns:
True if this property is identical to the one specified, false otherwise.

oCIMProperty clone() const
Makes a deep copy of the property. This creates a new copy of all the property attributes including qualifiers.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A new copy of the CIMProperty object.

oBoolean isUninitialized() const
Determines whether the object has been initialized.
Returns:
True if the object has not been initialized, false otherwise.


This class has no child classes.
Friends:
class CIMConstProperty
class CIMClassRep
class CIMInstanceRep
class Resolver
class XmlWriter
class MofWriter
class BinaryStreamer
class CIMObjectRep
class CIMPropertyContainer
class CIMPropertyInternal
class SCMOClass
class SCMOInstance

Alphabetic index HTML hierarchy of classes or Java


[an error occurred while processing this directive]