Class CIMProperty<E>
java.lang.Object
javax.cim.CIMElement
javax.cim.CIMTypedElement
javax.cim.CIMValuedElement<E>
javax.cim.CIMProperty<E>
- Type Parameters:
E- Type parameter.
- All Implemented Interfaces:
Serializable, Comparable<CIMElement>
- Direct Known Subclasses:
CIMClassProperty
This class represents a CIM Property as defined by the Distributed Management
Task Force (DMTF) CIM Infrastructure
Specification (DSP004). A CIM Property Object consists of a name, data type and value.
The CIM Property object also includes a flag to signify whether the property
is a key property (used as part of the name of the CIM element), a flag to
signify whether it was propagated from a parent class and the class origin
information (where the property was originally defined).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCIMProperty(String pName, CIMDataType pType, E pValue) Constructs aCIMPropertyto be used in instances.CIMProperty(String pName, CIMDataType pType, E pValue, boolean pKey, boolean pPropagated, String pOriginClass) Constructs aCIMPropertyto be used in instances. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this object against the specified object.Returns the class in which this property was defined or overridden.booleanisKey()Convenience method for determining if this property is a Key.booleanDetermines if this property is Propagated.Methods inherited from class CIMValuedElement
getValue, hashCode, toStringMethods inherited from class CIMTypedElement
getDataTypeMethods inherited from class CIMElement
compareTo, getName
-
Constructor Details
-
CIMProperty
Constructs aCIMPropertyto be used in instances. For aCIMClass,CIMClassPropertyshall be used. This can only be used for non-Key properties, non-propagated properties and when the the origin class is not needed.- Parameters:
pName- The name of the property.pType- TheCIMDataTypeof the property.pValue- The value of the property.
-
CIMProperty
public CIMProperty(String pName, CIMDataType pType, E pValue, boolean pKey, boolean pPropagated, String pOriginClass) Constructs aCIMPropertyto be used in instances. For aCIMClass,CIMClassPropertyshall be used.- Parameters:
pName- The name of the property.pType- TheCIMDataTypeof the property.pValue- The value of the property.pKey-trueif the property is a key; otherwisefalse.pPropagated-trueif the value was propagated from the class.pOriginClass- The class in which this property was defined or overridden.
-
-
Method Details
-
equals
Compares this object against the specified object. The result istrueif and only if the argument is notnulland is aCIMPropertythat represents the same name, type and value as this object.- Overrides:
equalsin classCIMValuedElement<E>- Parameters:
pObj- The object to compare with.- Returns:
trueif the objects are the same;falseotherwise.
-
getOriginClass
Returns the class in which this property was defined or overridden.- Returns:
- Name of class where this property was defined.
-
isKey
public boolean isKey()Convenience method for determining if this property is a Key.- Returns:
trueif this property is a key.
-
isPropagated
public boolean isPropagated()Determines if this property is Propagated. When this property is part of a class, this value designates that the class origin value is the same as the class name.- Returns:
trueif this property is propagated.
-