public class CIMValue
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static CIMValue |
FALSE |
static CIMValue |
TRUE |
Modifier | Constructor and Description |
---|---|
protected |
CIMValue() |
|
CIMValue(java.lang.Object pValue)
Deprecated.
this constructor may lead to confusion when the data type of
the specified argument can not be determined, such as the
case of null arguments.
|
|
CIMValue(java.lang.Object pValue,
CIMDataType pDataType)
Construct an object of a cim value, using the specified data type.
|
|
CIMValue(java.util.Vector pValue,
CIMDataType pDataType)
Construct an object of cim value for a given vector, and the specified
data type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
contains(java.lang.Object pValue)
Determines if the object argument passed to the method is contained as
part of the vector or if the object argument is equivalent to the current
value.
|
boolean |
equals(java.lang.Object obj) |
int |
getSize()
Returns the size of the current value.
|
CIMDataType |
getType()
Return the data type for this object.
|
java.lang.Object |
getValue()
Returns the value assigned to this object.
|
int |
hashCode() |
boolean |
isArrayValue()
Determines if the current value is an array type.
|
boolean |
isEmpty()
Determine no object has been assigned to the CIMValue.
|
boolean |
isNull()
Determines if the current value is null.
|
boolean |
isNullValue()
Determines if the current value is null.
|
static void |
main(java.lang.String[] args) |
int |
size()
Deprecated.
use getSize instead of size()
|
java.lang.String |
toMOF()
Returns the MOF representation of this element.
|
java.lang.String |
toString() |
public CIMValue(java.lang.Object pValue)
pValue
- The valuepublic CIMValue(java.lang.Object pValue, CIMDataType pDataType)
pValue
- the value object contained by this CIMValue.pDataType
- the data type for this CIMValue.java.lang.IllegalArgumentException
public CIMValue(java.util.Vector pValue, CIMDataType pDataType)
pValue
- A vector of objectspDataType
- An array data typejava.lang.IllegalArgumentException
- if the elements from the vector does not match the specified
data type.protected CIMValue()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean contains(java.lang.Object pValue)
pValue
- The valuetrue
if pValue is contained in this cim value,
false
otherwisepublic boolean isEmpty()
true
if value is equal to null
and
data type is not null.public boolean isNull()
true
if the current value is equal to
null
, otherwise returns false
.public boolean isNullValue()
true
if the current value is equal to
null
, otherwise returns false
.public int getSize()
public int size()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CIMDataType getType()
public java.lang.Object getValue()
public boolean isArrayValue()
true
if the value is an array, false
otherwisepublic java.lang.String toMOF()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.