|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.wbem.cim.CIMValue
This class encapsulates any CIM value which can be assigned to properties, references and qualifiers. CIM values have a datatype (CIMDataType) and the actual value(s).
Field Summary | |
static CIMValue |
FALSE
Initialize CIMValue false to a CIMValue Boolean object containing false. |
static CIMValue |
TRUE
Initialize CIMValue true to a CIMValue Boolean object containing true. |
Constructor Summary | |
CIMValue(java.lang.Object o)
Creates a CIMValue object and initializes it with the value 0 and the CIM data type of the Object o. |
|
CIMValue(java.lang.Object o,
CIMDataType dt)
Creates a CIMValue object and initializes it the value 0 and the CIM data type specified in dt, if Object o is null. |
|
CIMValue(java.util.Vector v,
CIMDataType dt)
Creates a CIMValue object and initializes it the value 0 and the CIM data type specified in dt. |
Method Summary | |
boolean |
contains(java.lang.Object obj)
Returns true if the value vector of this CIMValue contains the specified Object. |
boolean |
equals(java.lang.Object obj)
Returns true if the Object obj equals this CIMValue. |
CIMDataType |
getType()
Returns the CIM data type of this CIMValue. |
java.lang.Object |
getValue()
Returns the value of this CIMValue. |
boolean |
isArrayValue()
Returns true if this CIMValue contains an array value. |
boolean |
isEmpty()
Returns true if the value and data type of this CIMValue are empty. |
boolean |
isNullValue()
Returns true if this CIMValue contains a null data type. |
int |
size()
Returns the size of the data type of this CIMValue. |
java.lang.String |
toMOF()
Returns a MOF representation of the CIMValue. |
java.lang.String |
toString()
Returns a String representation of the CIMValue. |
java.lang.String |
toXml()
Returns an XML representation of this CIM value. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final CIMValue TRUE
public static final CIMValue FALSE
Constructor Detail |
public CIMValue(java.lang.Object o, CIMDataType dt)
o
- Object used to initialize this CIMValue.dt
- CIMDataType used to initialize this CIMValue.public CIMValue(java.util.Vector v, CIMDataType dt)
v
- Vector used to initialize this CIMValue.dt
- CIMDataType used to initialize this CIMValue.public CIMValue(java.lang.Object o)
o
- Java object used to initialize this CIMValue.Method Detail |
public boolean isArrayValue()
public boolean isNullValue()
public java.lang.String toMOF()
public java.lang.String toString()
public boolean contains(java.lang.Object obj)
public boolean isEmpty()
public int size()
public java.lang.Object getValue()
public CIMDataType getType()
public boolean equals(java.lang.Object obj)
o
- The Object to compare.public java.lang.String toXml()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |