|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.cim.CIMElement
javax.cim.CIMTypedElement
javax.cim.CIMValuedElement
javax.cim.CIMProperty
javax.cim.CIMClassProperty
This class represents a CIM property (when used for a CIMClass) as defined by the Distributed Management Task Force (DMTF) CIM Infrastructure Specification (DSP004). This class is to be used for all CIMClass properties. NOTE: For instance properties, use the class CIMProperty.
| Constructor Summary | |
CIMClassProperty(java.lang.String pName,
CIMDataType pType,
java.lang.Object pValue,
CIMQualifier[] pQualifiers,
boolean pKey,
boolean propagated,
java.lang.String originClass)
This method constructs an instance of CIMClassProperty. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this object against the specified object. |
CIMClassProperty |
filter(boolean includeQualifiers,
boolean includeClassOrigin)
Returns a CIMClassProperty filtered as specified. |
CIMQualifier |
getQualifier(int pIndex)
Get a qualifier by index. |
CIMQualifier |
getQualifier(java.lang.String pName)
Gets a qualifier by name. |
int |
getQualifierCount()
Get the number of qualifiers defined for this property. |
CIMQualifier[] |
getQualifiers()
Returns the list of qualifiers for this property. |
java.lang.Object |
getQualifierValue(java.lang.String name)
Gets a qualifier value by name. |
boolean |
hasQualifier(java.lang.String pName)
Checks whether the specified qualifier is one of the qualifiers defined for this property. |
boolean |
hasQualifierValue(java.lang.String name,
java.lang.Object value)
Checks whether the specified qualifier is one of the qualifiers defined for this property with the specified value. |
| Methods inherited from class javax.cim.CIMProperty |
compareTo, getDataType, getOriginClass, getValue, isKey, isPropagated, toString |
| Methods inherited from class javax.cim.CIMElement |
getName, hashCode |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CIMClassProperty(java.lang.String pName,
CIMDataType pType,
java.lang.Object pValue,
CIMQualifier[] pQualifiers,
boolean pKey,
boolean propagated,
java.lang.String originClass)
pName - The name of the property.pType - The data type of the property.pValue - The value of the property.pQualifiers - The qualifiers for the property.pKey - true if the property is a key, otherwise false.propagated - true if the property was inherited, otherwise false.originClass - The original class in which the property was defined.
java.lang.IllegalArgumentException - Thrown if the property data type and value do not match.| Method Detail |
public boolean equals(java.lang.Object obj)
equals in class CIMPropertyobj - -
the object to compare with.
public CIMClassProperty filter(boolean includeQualifiers,
boolean includeClassOrigin)
includeQualifiers - If true all qualifiers are returned; otherwise no qualifiers.includeClassOrigin - If true the class origin is included; otherwise no class
origin is present
public CIMQualifier getQualifier(int pIndex)
getQualifier in interface CIMQualifiedElementInterfacepIndex - The index of the qualifier to retrieve
public CIMQualifier getQualifier(java.lang.String pName)
getQualifier in interface CIMQualifiedElementInterfacepName - The name of the qualifier to get.
public int getQualifierCount()
getQualifierCount in interface CIMQualifiedElementInterfacepublic CIMQualifier[] getQualifiers()
getQualifiers in interface CIMQualifiedElementInterfacepublic java.lang.Object getQualifierValue(java.lang.String name)
getQualifierValue in interface CIMQualifiedElementInterfacename - The name of the qualifier to get.
public boolean hasQualifier(java.lang.String pName)
hasQualifier in interface CIMQualifiedElementInterfacepName - the name of the qualifier
public boolean hasQualifierValue(java.lang.String name,
java.lang.Object value)
hasQualifierValue in interface CIMQualifiedElementInterfacename - the name of the qualifiervalue - the value to be tested
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||