|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.wbem.cim.CIMDataType
Encapsulates the CIM data types (as defined in the CIM Specification). This class includes methods that perform operations on CIM data types, such as, returning the CIM data type of a CIM object, returning an array of CIM data types for an array of CIM objects, and creating an object or array of objects of the specified CIM data type. All CIM properties must have a valid CIM data type.
Field Summary | |
static int |
BOOLEAN
Boolean |
static int |
BOOLEAN_ARRAY
Boolean array |
static int |
CHAR16
16-bit UCS-2 character |
static int |
CHAR16_ARRAY
16-bit UCS-2 character |
static int |
CLASS
CIMClass type |
static int |
DATETIME
A string containing the date-time |
static int |
DATETIME_ARRAY
A string containing the date-time |
static int |
INVALID
Invalid type |
static int |
NULL
Null type |
static int |
OBJECT
CIMInstance type |
static int |
REAL32
IEEE 4-byte floating-point |
static int |
REAL32_ARRAY
IEEE 4-byte floating-point |
static int |
REAL64
IEEE 8-byte floating-point |
static int |
REAL64_ARRAY
IEEE 8-byte floating-point |
static int |
REFERENCE
Reference type |
static int |
SINT16
Signed 16-bit integer |
static int |
SINT16_ARRAY
Signed 16-bit integer array |
static int |
SINT32
Signed 32-bit integer |
static int |
SINT32_ARRAY
Signed 32-bit integer array |
static int |
SINT64
Signed 64-bit integer |
static int |
SINT64_ARRAY
Signed 64-bit integer array |
static int |
SINT8
Signed 8-bit integer |
static int |
SINT8_ARRAY
Signed 8-bit integer array |
static int |
SIZE_SINGLE
This size is for non-array types |
static int |
SIZE_UNLIMITED
This size is for unlimited size array types. |
static int |
STRING
UCS-2 string |
static int |
STRING_ARRAY
UCS-2 string array |
static int |
UINT16
Unsigned 16-bit integer |
static int |
UINT16_ARRAY
Unsigned 16-bit integer array |
static int |
UINT32
Unsigned 32-bit integer |
static int |
UINT32_ARRAY
Unsigned 32-bit integer array |
static int |
UINT64
Unsigned 64-bit integer |
static int |
UINT64_ARRAY
Unsigned 64-bit integer array |
static int |
UINT8
Unsigned 8-bit integer |
static int |
UINT8_ARRAY
Unsigned 8-bit integer array |
Constructor Summary | |
CIMDataType(int type)
Constructor creates a new CIM data type object with the specified type (does not take reference, null types). |
|
CIMDataType(int type,
int size)
Constructor creates a new CIM array data type with the specified size. |
|
CIMDataType(java.lang.String refClassName)
Creates a new CIM REFERENCE data type object with the specified class reference. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks that the specified object is a CIM data type |
static int |
findArrayType(int simpleType)
Takes a CIM data type and returns the CIM array type. |
static int |
findSimpleType(int arrayType)
Takes a CIM array type and returns the CIM data type. |
static int |
findType(java.lang.Object o)
Returns the CIM data type for the specified object |
static int |
findType(java.util.Vector v)
Returns the CIM data type for the specified list of objects. |
static CIMDataType |
getDataType(java.lang.String type)
|
static CIMDataType |
getDataType(java.lang.String type,
boolean isArray)
|
static CIMDataType |
getPredefinedType(int type)
Returns a CIM data type object with the specified predefined type. |
java.lang.String |
getRefClassName()
Returns the classname for the reference type. |
int |
getSize()
Returns the size |
int |
getType()
Returns the data type |
boolean |
isArrayType()
Checks if the type is an array type. |
boolean |
isReferenceType()
Checks if the type is a reference type. |
java.lang.String |
toMOF()
Returns a MOF representation of the CIMDataType |
java.lang.String |
toString()
Returns a String representation of the CIMDataType. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int SIZE_SINGLE
public static final int SIZE_UNLIMITED
public static final int INVALID
public static final int UINT8
UnsignedInt8
public static final int SINT8
public static final int UINT16
UnsignedInt16
public static final int SINT16
public static final int UINT32
UnsignedInt32
public static final int SINT32
public static final int UINT64
UnsignedInt64
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
CIMDateTime
public static final int CHAR16
public static final int UINT8_ARRAY
UnsignedInt8
public static final int SINT8_ARRAY
public static final int UINT16_ARRAY
UnsignedInt16
public static final int SINT16_ARRAY
public static final int UINT32_ARRAY
UnsignedInt32
public static final int SINT32_ARRAY
public static final int UINT64_ARRAY
UnsignedInt64
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
CIMDateTime
public static final int CHAR16_ARRAY
public static final int REFERENCE
public static final int OBJECT
public static final int NULL
public static final int CLASS
Constructor Detail |
public CIMDataType(int type)
type
- the CIM data typepublic CIMDataType(int type, int size)
type
- the CIM array data typesize
- the CIM array sizepublic CIMDataType(java.lang.String refClassName)
type
- the CIM class reference.Method Detail |
public static final int findType(java.lang.Object o)
o
- the object for which the data type is to
be checkedpublic static CIMDataType getDataType(java.lang.String type) throws CIMException
public static CIMDataType getDataType(java.lang.String type, boolean isArray) throws CIMException
public static final int findType(java.util.Vector v)
v
- the list of objects for which the data type is to
be checkedpublic static final int findArrayType(int simpleType)
simpleType
- the integer for the CIM data type of this
objectpublic static final int findSimpleType(int arrayType)
arrayType
- the integer for the CIM array type of this
objectpublic static CIMDataType getPredefinedType(int type)
type
- the CIM data typepublic boolean isArrayType()
public boolean isReferenceType()
public int getType()
public int getSize()
public java.lang.String getRefClassName()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
public java.lang.String toMOF()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |