|
||||||||||
| 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<E>
javax.cim.CIMProperty<E>
E - : Type Parameterpublic class CIMProperty<E>
The CIMProperty class wraps the value of a CIM Property. 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 (or default value) and the class origin
information (where the property was originally defined or last overridden). A
CIM Property is defined in the CIM Infrastructure Specification. The
specification is available from the DMTF (Distributed Management Task Force)
at http://dmtf.org/.
| Constructor Summary | |
|---|---|
CIMProperty(java.lang.String pName,
CIMDataType pType,
E pValue)
Constructs a CIMProperty to be used in instances. |
|
CIMProperty(java.lang.String pName,
CIMDataType pType,
E pValue,
boolean pKey,
boolean pPropagated,
java.lang.String pOriginClass)
Constructs a CIMProperty to be used in instances. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object pObj)
Compares this object against the specified object. |
java.lang.String |
getOriginClass()
Returns the class or instance in which this property was defined. |
boolean |
isKey()
Convenience method for determining if this property is a Key. |
boolean |
isPropagated()
Determines if this property is Propagated. |
java.lang.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.CIMValuedElement |
|---|
getValue |
| Methods inherited from class javax.cim.CIMTypedElement |
|---|
getDataType |
| Methods inherited from class javax.cim.CIMElement |
|---|
compareTo, getName, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CIMProperty(java.lang.String pName,
CIMDataType pType,
E pValue)
pName - - The name of the property.pType - - The CIMDataType of the property.pValue - - The value of the property.
public CIMProperty(java.lang.String pName,
CIMDataType pType,
E pValue,
boolean pKey,
boolean pPropagated,
java.lang.String pOriginClass)
CIMProperty to be used in instances. For a
CIMClass CIMClassProperty should be used.
pName - - The name of the property.pType - - The CIMDataType of the property.pValue - - The value of the property.pKey - - true if the property is a key; otherwise
false.pPropagated - - true if the value was propagated from the
class.pOriginClass - - The class in which this property was defined or overridden.| Method Detail |
|---|
public java.lang.String getOriginClass()
public boolean isKey()
true if this property is a key.public boolean isPropagated()
true if this property is propagated.public boolean equals(java.lang.Object pObj)
true if and only if the argument is not null
and is a CIMValuedObject that represents the same name, type
and value as this object.
equals in class CIMValuedElement<E>pObj - - the object to compare with.
true if the objects are the same; false
otherwise.Object.equals(java.lang.Object)public java.lang.String toString()
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. The returned string may be empty but may not be
null.
toString in class CIMValuedElement<E>CIMTypedElement.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||