|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.cim.CIMElement
javax.cim.CIMProperty<E>
javax.cim.CIMClassProperty<E>
public class CIMClassProperty<E>
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(String pName,
CIMDataType pType,
E pValue,
CIMQualifier<?>[] pQualifiers,
boolean pKey,
boolean propagated,
String originClass)
This method constructs an instance of CIMClassProperty. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares this object against the specified object. |
CIMClassProperty<E> |
filter(boolean includeQualifiers,
boolean includeClassOrigin)
Returns a CIMClassProperty filtered as specified. |
CIMClassProperty<E> |
filter(boolean includeQualifiers,
boolean includeClassOrigin,
boolean localOnly)
Returns a CIMClassProperty filtered as specified. |
CIMDataType |
getDataType()
Returns the CIMDataType for this CIM Element. |
CIMQualifier<?> |
getQualifier(int pIndex)
Get a qualifier by index. |
CIMQualifier<?> |
getQualifier(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. |
Object |
getQualifierValue(String name)
Gets a qualifier value by name. |
E |
getValue()
Returns the value for this CIM Element. |
boolean |
hasQualifier(String pName)
Checks whether the specified qualifier is one of the qualifiers defined for this property. |
boolean |
hasQualifierValue(String name,
Object value)
Checks whether the specified qualifier is one of the qualifiers defined for this property with the specified value. |
String |
toString()
Returns a String representation of the CIMElement This method is intended to be used only for debugging purposes, and the format of the returned string may vary between implementations. |
Methods inherited from class javax.cim.CIMProperty |
---|
getOriginClass, isKey, isPropagated |
Methods inherited from class javax.cim.CIMElement |
---|
compareTo, getName, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CIMClassProperty(String pName, CIMDataType pType, E pValue, CIMQualifier<?>[] pQualifiers, boolean pKey, boolean propagated, 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.
IllegalArgumentException
- Thrown if the property data type and value do not match.Method Detail |
---|
public boolean equals(Object obj)
equals
in class CIMProperty<E>
obj
- -
the object to compare with.
public CIMClassProperty<E> 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 CIMClassProperty<E> filter(boolean includeQualifiers, boolean includeClassOrigin, boolean localOnly)
includeQualifiers
- If true all qualifiers are returned; otherwise no qualifiers.includeClassOrigin
- If true the class origin is included; otherwise no class
origin is presentlocalOnly
- If true only the qualifiers that were not propagated will be
included.
public CIMQualifier<?> getQualifier(int pIndex)
getQualifier
in interface CIMQualifiedElementInterface
pIndex
- The index of the qualifier to retrieve
public CIMQualifier<?> getQualifier(String pName)
getQualifier
in interface CIMQualifiedElementInterface
pName
- The name of the qualifier to get.
public int getQualifierCount()
getQualifierCount
in interface CIMQualifiedElementInterface
public CIMQualifier<?>[] getQualifiers()
getQualifiers
in interface CIMQualifiedElementInterface
public Object getQualifierValue(String name)
getQualifierValue
in interface CIMQualifiedElementInterface
name
- The name of the qualifier to get.
public boolean hasQualifier(String pName)
hasQualifier
in interface CIMQualifiedElementInterface
pName
- the name of the qualifier
public boolean hasQualifierValue(String name, Object value)
hasQualifierValue
in interface CIMQualifiedElementInterface
name
- the name of the qualifiervalue
- the value to be tested
public E getValue()
public String toString()
toString
in class CIMElement
public CIMDataType getDataType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |