|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.wbem.cim.CIMDataType
public class CIMDataType
Provides the basic interface to define CIM data type defined by the CIM specification.
Field Summary | |
---|---|
static int |
BOOLEAN
Boolean. |
static int |
BOOLEAN_ARRAY
|
static int |
CHAR16
16 bit UCS-2 character. |
static int |
CHAR16_ARRAY
|
static int |
CLASS
Class type. |
static int |
DATETIME
A string which defines a datetime value according the CIM specification. |
static int |
DATETIME_ARRAY
|
static int |
INVALID
Invalid type. |
static CIMDataType |
INVALID_DATATYPE
|
static int |
MAX_ARRAY_TYPE
|
static int |
MAX_SINGLE_TYPE
|
static int |
MIN_ARRAY_TYPE
|
static int |
MIN_SINGLE_TYPE
|
static int |
NULL
Null type. |
static CIMDataType |
NULL_DATATYPE
|
static int |
NUMERIC
Numeric type for key properties |
static int |
OBJECT
CIMInstance type. |
static int |
REAL32
IEEE 4-byte floating point. |
static int |
REAL32_ARRAY
|
static int |
REAL64
IEEE 8-byte floating point. |
static int |
REAL64_ARRAY
|
static int |
REFERENCE
Reference type. |
static int |
REFERENCE_ARRAY
|
static int |
SINT16
Signed 16-bit integer. |
static int |
SINT16_ARRAY
|
static int |
SINT32
Signed 32-bit integer. |
static int |
SINT32_ARRAY
|
static int |
SINT64
Signed 64-bit integer. |
static int |
SINT64_ARRAY
|
static int |
SINT8
Signed 8-bit integer. |
static int |
SINT8_ARRAY
|
static int |
SIZE_SINGLE
|
static int |
SIZE_UNLIMITED
|
static int |
STRING
UCS String. |
static int |
STRING_ARRAY
|
static int |
UINT16
Unsigned 16-bit integer. |
static int |
UINT16_ARRAY
|
static int |
UINT32
Unsigned 32-bit integer. |
static int |
UINT32_ARRAY
|
static int |
UINT64
Unsigned 64-bit integer. |
static int |
UINT64_ARRAY
|
static int |
UINT8
Unsigned 8-bit integer. |
static int |
UINT8_ARRAY
|
Constructor Summary | |
---|---|
CIMDataType(int pType)
Constructs an object of cim data type using the specified data type value. |
|
CIMDataType(int pType,
int pSize)
Constructs a cim data type with the specified type and size. |
|
CIMDataType(java.lang.String pRefClassName)
Construct a CIMDataType which is a references of the specified CIMClass. |
|
CIMDataType(java.lang.String pRefClassName,
int pSize)
Construct a CIMDataType which is an array of references of the specified CIMClass. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
static int |
findArrayType(int pSimpleType)
Returns a value which represents the array type representation of a single type passed as an argument. |
static int |
findSimpleType(int pArrayType)
Returns a value which represents the single type representation of an array type passed as an argument. |
static int |
findType(java.lang.Object pValue)
Returns an integer value that represents the data type for the specified object. |
static CIMDataType |
getDataType(java.lang.String typeStr,
boolean isArray)
Returns the corresponding CIMDataType object for the specified string type. |
static CIMDataType |
getPredefinedType(int pType)
Return a predefined value for the CIMDataType. |
java.lang.String |
getRefClassName()
Returns the class name pointed by this data type. |
int |
getSize()
Returns the current size of the data type. |
java.lang.String |
getStringType()
Returns the string representation of this type. |
int |
getType()
Returns the type of this object. |
int |
hashCode()
|
boolean |
isArrayType()
Defermines if the current data type is an array type. |
boolean |
isReferenceType()
Determines if the current data type is a reference type. |
static boolean |
isTypeCompatible(java.lang.Object pValue,
CIMDataType pDataType)
Defermines if the specified data type is is compatible with the data type of the specified value. |
static void |
main(java.lang.String[] args)
|
void |
setType(int pType)
Sets the current type of the object. |
java.lang.String |
toMOF()
Returns the MOF representation of this object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INVALID
public static final int UINT8
public static final int SINT8
public static final int UINT16
public static final int SINT16
public static final int UINT32
public static final int SINT32
public static final int UINT64
public static final int SINT64
public static final int STRING
public static final int BOOLEAN
public static final int REAL32
public static final int REAL64
public static final int DATETIME
public static final int CHAR16
public static final int REFERENCE
public static final int NUMERIC
public static final int UINT8_ARRAY
public static final int SINT8_ARRAY
public static final int UINT16_ARRAY
public static final int SINT16_ARRAY
public static final int UINT32_ARRAY
public static final int SINT32_ARRAY
public static final int UINT64_ARRAY
public static final int SINT64_ARRAY
public static final int STRING_ARRAY
public static final int BOOLEAN_ARRAY
public static final int REAL32_ARRAY
public static final int REAL64_ARRAY
public static final int DATETIME_ARRAY
public static final int CHAR16_ARRAY
public static final int REFERENCE_ARRAY
public static final int OBJECT
public static final int NULL
public static final int CLASS
public static final int SIZE_SINGLE
public static final int SIZE_UNLIMITED
public static final int MIN_SINGLE_TYPE
public static final int MAX_SINGLE_TYPE
public static final int MIN_ARRAY_TYPE
public static final int MAX_ARRAY_TYPE
public static final CIMDataType INVALID_DATATYPE
public static final CIMDataType NULL_DATATYPE
Constructor Detail |
---|
public CIMDataType(int pType)
pType
- One of the type constants in this class
java.lang.IllegalArgumentException
- if the specified data type is invalidpublic CIMDataType(int pType, int pSize)
pType
- One of the type constants in this classpSize
- The desirtd size SIZE_UNLIMITED, 0..MAX_INT_SIZE
java.lang.IllegalArgumentException
- if the data type is invalid or if the size is invalid.public CIMDataType(java.lang.String pRefClassName)
pRefClassName
- The referenced class' namepublic CIMDataType(java.lang.String pRefClassName, int pSize)
pRefClassName
- The referenced class' namepSize
- The size of the arrayMethod Detail |
---|
public java.lang.String getRefClassName()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getType()
public void setType(int pType)
pType
- The type
java.lang.IllegalArgumentException
- if the assigned data type is invalidpublic int getSize()
public static int findType(java.lang.Object pValue)
pValue
- The value
public static CIMDataType getDataType(java.lang.String typeStr, boolean isArray)
typeStr
- isArray
-
public static CIMDataType getPredefinedType(int pType)
pType
- One of the data type constants in this class
public boolean isArrayType()
true
if this type is an array type,
false
otherwisepublic static boolean isTypeCompatible(java.lang.Object pValue, CIMDataType pDataType)
pValue
- The valuepDataType
- The data type
true
, if compatible, false
otherwisepublic boolean isReferenceType()
true
if this data type is a reference type,
false
otherwisepublic java.lang.Object clone()
clone
in class java.lang.Object
public static int findArrayType(int pSimpleType)
pSimpleType
- The simple type
public static int findSimpleType(int pArrayType)
pArrayType
- The array type
public java.lang.String getStringType()
public java.lang.String toMOF()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |