|
|||||||||
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>
public class CIMProperty<E>
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).
Constructor Summary | |
---|---|
CIMProperty(String name,
CIMDataType type,
E value)
Constructs a CIMProperty to be used in instances. |
|
CIMProperty(String name,
CIMDataType type,
E value,
boolean key,
boolean propagated,
String originClass)
Constructs a CIMProperty to be used in instances. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares this object against the specified object. |
CIMDataType |
getDataType()
Returns the CIMDataType for this CIM Element. |
String |
getOriginClass()
Returns the class in which this property was defined or overridden. |
E |
getValue()
Returns the value for this CIM Element. |
boolean |
isKey()
Convenience method for determining if this property is a Key. |
boolean |
isPropagated()
Determines if this property is Propagated. |
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.CIMElement |
---|
compareTo, getName, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CIMProperty(String name, CIMDataType type, E value)
name
- The name of the property.type
- The CIMDataType of the propertyvalue
- The value of the property.public CIMProperty(String name, CIMDataType type, E value, boolean key, boolean propagated, String originClass)
name
- The name of the property.type
- The CIMDataType of the propertyvalue
- The value of the property.key
- true if the property is a key; otherwise false.propagated
- true if the value was propogated from the classoriginClass
- The class in which this property was defined or overriden.Method Detail |
---|
public boolean equals(Object obj)
obj
- -
the object to compare with.
public String getOriginClass()
public boolean isKey()
public boolean isPropagated()
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 |