E - Type parameter.public class CIMClassProperty<E> extends CIMProperty<E> implements CIMQualifiedElementInterface
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 and Description |
|---|
CIMClassProperty(java.lang.String pName,
CIMDataType pType,
E pValue,
CIMQualifier<?>[] pQualifiers,
boolean pKey,
boolean pPropagated,
java.lang.String pOriginClass)
This method constructs an instance of
CIMClassProperty. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object pObj)
Compares this object against the specified object.
|
CIMClassProperty<E> |
filter(boolean pIncludeQualifiers,
boolean pIncludeClassOrigin)
Returns a
CIMClassProperty filtered as specified. |
CIMClassProperty<E> |
filter(boolean pIncludeQualifiers,
boolean pIncludeClassOrigin,
boolean pLocalOnly)
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 pName)
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 pName,
java.lang.Object pValue)
Checks whether the specified qualifier is one of the qualifiers defined
for this property with the specified value.
|
getOriginClass, isKey, isPropagatedgetValue, hashCode, toStringgetDataTypecompareTo, getNamepublic CIMClassProperty(java.lang.String pName,
CIMDataType pType,
E pValue,
CIMQualifier<?>[] pQualifiers,
boolean pKey,
boolean pPropagated,
java.lang.String pOriginClass)
CIMClassProperty.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.pPropagated - true if the property was inherited, otherwise
false.pOriginClass - The original class in which the property was defined.public boolean equals(java.lang.Object pObj)
true if and only if the argument is not null and is a
CIMClassProperty that represents the same name, type and
value as this object.equals in class CIMProperty<E>pObj - The object to compare with.true if the objects are the same; false
otherwise.public CIMClassProperty<E> filter(boolean pIncludeQualifiers, boolean pIncludeClassOrigin)
CIMClassProperty filtered as specified.pIncludeQualifiers - If true all qualifiers are returned; otherwise no
qualifiers.pIncludeClassOrigin - If true the class origin is included; otherwise
no class origin is present.CIMClassProperty.public CIMClassProperty<E> filter(boolean pIncludeQualifiers, boolean pIncludeClassOrigin, boolean pLocalOnly)
CIMClassProperty filtered as specified.pIncludeQualifiers - If true all qualifiers are returned; otherwise no
qualifiers.pIncludeClassOrigin - If true the class origin is included; otherwise
no class origin is present.pLocalOnly - If true only the qualifiers that were not
propagated will be included.CIMClassProperty.public CIMQualifier<?> getQualifier(int pIndex) throws java.lang.ArrayIndexOutOfBoundsException
getQualifier in interface CIMQualifiedElementInterfacepIndex - The index of the qualifier to retrieve.java.lang.ArrayIndexOutOfBoundsExceptionpublic CIMQualifier<?> getQualifier(java.lang.String pName)
getQualifier in interface CIMQualifiedElementInterfacepName - The name of the qualifier to get.null if the qualifier
does not exist.public int getQualifierCount()
getQualifierCount in interface CIMQualifiedElementInterfacepublic CIMQualifier<?>[] getQualifiers()
getQualifiers in interface CIMQualifiedElementInterfacepublic java.lang.Object getQualifierValue(java.lang.String pName)
getQualifierValue in interface CIMQualifiedElementInterfacepName - The name of the qualifier to get.null if the qualifier does not exist or value is
null, otherwise returns the reference to the
qualifier.public boolean hasQualifier(java.lang.String pName)
hasQualifier in interface CIMQualifiedElementInterfacepName - The name of the qualifier.true if the qualifier exists in this property,
otherwise false.public boolean hasQualifierValue(java.lang.String pName,
java.lang.Object pValue)
false if the qualifier is not applied or if the value does
not match.hasQualifierValue in interface CIMQualifiedElementInterfacepName - The name of the qualifier.pValue - The value to be tested.true if the qualifier exists in this property,
otherwise false.Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.