org.sblim.wbem.cim
Class CIMValue
java.lang.Object
org.sblim.wbem.cim.CIMValue
- Cloneable, Serializable
public class CIMValue
extends java.lang.Object
implements Serializable, Cloneable
CIMValue.java
(C) Copyright IBM Corp. 2005, 2009
THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
You can obtain a current copy of the Eclipse Public License from
http://www.opensource.org/licenses/eclipse-1.0.php
CIMValue()
|
CIMValue(Object pValue) - 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(Object pValue, CIMDataType pDataType) - Construct an object of a cim value, using the specified data type.
|
CIMValue(Vector pValue, CIMDataType pDataType) - Construct an object of cim value for a given vector, and the specified
data type.
|
Object | clone()
|
boolean | contains(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(Object obj)
|
int | getSize() - Returns the size of the current value.
|
CIMDataType | getType() - Return the data type for this object.
|
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(String[] args)
|
int | size() - use getSize instead of size()
|
String | toMOF() - Returns the MOF representation of this element.
|
String | toString()
|
CIMValue
protected CIMValue()
CIMValue
public CIMValue(Object pValue)
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.
Construct an object of a CIMValue. Other constructors are preferred than
this one, because it may not determine the appropriate value type of the
object passed as argument.
CIMValue
public CIMValue(Object pValue,
CIMDataType pDataType)
Construct an object of a cim value, using the specified data type.
pValue
- the value object contained by this CIMValue.pDataType
- the data type for this CIMValue.
CIMValue
public CIMValue(Vector pValue,
CIMDataType pDataType)
Construct an object of cim value for a given vector, and the specified
data type.
pValue
- A vector of objectspDataType
- An array data type
clone
public Object clone()
contains
public boolean contains(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.
true
if pValue is contained in this cim value,
false
otherwise
equals
public boolean equals(Object obj)
getSize
public int getSize()
Returns the size of the current value. If the value is a vector type, the
size of the vector. If the value is equals to null, and a data type is
provided returns the size of the data type, otherwise returns a
SIZE_SINGLE value.
getType
public CIMDataType getType()
Return the data type for this object.
getValue
public Object getValue()
Returns the value assigned to this object.
hashCode
public int hashCode()
isArrayValue
public boolean isArrayValue()
Determines if the current value is an array type.
true
if the value is an array, false
otherwise
isEmpty
public boolean isEmpty()
Determine no object has been assigned to the CIMValue. This is if the
value == null && the value type != null.
true
if value is equal to null
and
data type is not null.
isNull
public boolean isNull()
Determines if the current value is null.
true
if the current value is equal to
null
, otherwise returns false
.
isNullValue
public boolean isNullValue()
Determines if the current value is null.
true
if the current value is equal to
null
, otherwise returns false
.
main
public static void main(String[] args)
size
public int size()
use getSize instead of size()
Return the size of the current value. If the value is a vector type,
returns the size of the vector. If the value is equals to null, and a
data type is provided returns the size of the data type, otherwise
returns a SIZE_SINGLE value.
toMOF
public String toMOF()
Returns the MOF representation of this element.
toString
public String toString()
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.