|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.cim.CIMDataType
This class represent a CIM data types as defined by the Distributed
Management Task Force (DMTF) CIM
Infrastructure Specification (DSP004).
The CIM only allows a set number of data type. This class defines the mapping
of CIM data types to Java objects.
Note: CIM allows the fixed size of an array as part of the data type. The
predefined classes are unbounded.
The following table shows the mapping of CIM Data Type to Java.
CIM Data Type |
Java Representation |
uint8 |
UnsignedInteger8 |
sint8 |
Byte |
uint16 |
UnsignedInteger16 |
sint16 |
Short |
uint32 |
UnsignedInteger32 |
sint32 |
Integer |
uint64 |
UnsignedInteger64 |
sint64 |
Long |
string |
String |
boolean |
Boolean |
real32 |
Float |
real64 |
Double |
datetime |
CIMDataTimeAbsolute CIMDataTimeInterval |
<classname> ref |
CIMObjectPath |
char16 |
Character |
Field Summary | |
static int |
BOOLEAN
Boolean |
static CIMDataType |
BOOLEAN_ARRAY_T
Boolean unbounded array data type |
static CIMDataType |
BOOLEAN_T
Boolean data type |
static int |
CHAR16
16-bit UCS-2 character |
static CIMDataType |
CHAR16_ARRAY_T
16-bit UCS-2 character unbounded Array type |
static CIMDataType |
CHAR16_T
16-bit UCS-2 character data type |
static int |
CLASS
CIMClass type |
static CIMDataType |
CLASS_T
CIMClass type |
static int |
DATETIME
A string containing the date-time |
static CIMDataType |
DATETIME_ARRAY_T
A date-time unbounded array data type |
static CIMDataType |
DATETIME_T
A date-time data type |
static int |
INVALID
Invalid type |
static CIMDataType |
INVALID_T
Invalid data type |
static int |
NULL
Null type |
static int |
OBJECT
CIMInstance type |
static CIMDataType |
OBJECT_ARRAY_T
CIMInstance unbounded Array type |
static CIMDataType |
OBJECT_T
CIMInstance type data type Note: For CIMV2, this can only be used when the property has either an EmbeddedInstance or EmbeddedObject qualifier. |
static int |
REAL32
IEEE 4-byte floating-point |
static CIMDataType |
REAL32_ARRAY_T
IEEE 4-byte floating-point unbounded array data type |
static CIMDataType |
REAL32_T
IEEE 4-byte floating-point data type |
static int |
REAL64
IEEE 8-byte floating-point |
static CIMDataType |
REAL64_ARRAY_T
IEEE 8-byte floating-point unbounded array data type |
static CIMDataType |
REAL64_T
IEEE 8-byte floating-point data type |
static int |
REFERENCE
Reference type |
static int |
SINT16
Signed 16-bit integer |
static CIMDataType |
SINT16_ARRAY_T
Signed 16-bit integer unbounded array data type |
static CIMDataType |
SINT16_T
Signed 16-bit integer data type |
static int |
SINT32
Signed 32-bit integer |
static CIMDataType |
SINT32_ARRAY_T
Signed 32-bit integer unbounded array data type |
static CIMDataType |
SINT32_T
Signed 32-bit integer data type |
static int |
SINT64
Signed 64-bit integer |
static CIMDataType |
SINT64_ARRAY_T
Signed 64-bit integer unbounded array data type |
static CIMDataType |
SINT64_T
Signed 64-bit integer data type |
static int |
SINT8
Signed 8-bit integer |
static CIMDataType |
SINT8_ARRAY_T
Signed 8-bit integer unbounded array data type |
static CIMDataType |
SINT8_T
Signed 8-bit integer data type |
static int |
STRING
UCS-2 string |
static CIMDataType |
STRING_ARRAY_T
UCS-2 string unbounded array data type |
static CIMDataType |
STRING_T
UCS-2 string data type |
static int |
UINT16
Unsigned 16-bit integer |
static CIMDataType |
UINT16_ARRAY_T
Unsigned 16-bit integer unbounded array data type |
static CIMDataType |
UINT16_T
Unsigned 16-bit integer data type |
static int |
UINT32
Unsigned 32-bit integer |
static CIMDataType |
UINT32_ARRAY_T
Unsigned 32-bit integer unbounded array data type |
static CIMDataType |
UINT32_T
Unsigned 32-bit integer data type |
static int |
UINT64
Unsigned 64-bit integer |
static CIMDataType |
UINT64_ARRAY_T
Unsigned 64-bit integer unbounded array data type |
static CIMDataType |
UINT64_T
Unsigned 64-bit integer data type |
static int |
UINT8
Unsigned 8-bit integer |
static CIMDataType |
UINT8_ARRAY_T
Unsigned 8-bit integer unbounded array data type |
static CIMDataType |
UINT8_T
Unsigned 8-bit integer data type |
Constructor Summary | |
CIMDataType(int pType,
int pSize)
Constructs a CIMDataType array object of the specified type and size. |
|
CIMDataType(java.lang.String pClassName)
Creates a new CIM REFERENCE data type object with the specified class reference. |
|
CIMDataType(java.lang.String pClassName,
int pSize)
Creates a new CIM REFERENCE_ARRAY 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 CIMDataType |
getDataType(java.lang.Object o)
Get the data type of an object. |
java.lang.String |
getRefClassName()
Returns the class name of the CIM REFERENCE data type. |
int |
getSize()
Returns the size of the maximum number of elements an array data type may hold. |
int |
getType()
Returns the data typep |
boolean |
isArray()
Checks if the data type is an array type. |
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 BOOLEAN
Boolean
,
Constant Field Valuespublic static final CIMDataType BOOLEAN_ARRAY_T
Boolean
public static final CIMDataType BOOLEAN_T
Boolean
public static final int CHAR16
Character
,
Constant Field Valuespublic static final CIMDataType CHAR16_ARRAY_T
Character
public static final CIMDataType CHAR16_T
Character
public static final int CLASS
CIMClass
,
Constant Field Valuespublic static final CIMDataType CLASS_T
Note: For CIMV2, this can only be used when the property
has an EmbeddedObject qualifier.
public static final int DATETIME
CIMDateTimeInterval
,
CIMDateTimeAbsolute
,
Constant Field Valuespublic static final CIMDataType DATETIME_ARRAY_T
CIMDateTimeInterval
,
CIMDateTimeAbsolute
public static final CIMDataType DATETIME_T
CIMDateTimeInterval
,
CIMDateTimeAbsolute
public static final int INVALID
public static final CIMDataType INVALID_T
public static final int NULL
public static final int OBJECT
CIMInstance
,
Constant Field Valuespublic static final CIMDataType OBJECT_ARRAY_T
CIMInstance
public static final CIMDataType OBJECT_T
CIMInstance
public static final int REAL32
Float
,
Constant Field Valuespublic static final CIMDataType REAL32_ARRAY_T
Float
public static final CIMDataType REAL32_T
Float
public static final int REAL64
Double
,
Constant Field Valuespublic static final CIMDataType REAL64_ARRAY_T
Double
public static final CIMDataType REAL64_T
Double
public static final int REFERENCE
CIMObjectPath
,
Constant Field Valuespublic static final int SINT16
Short
,
Constant Field Valuespublic static final CIMDataType SINT16_ARRAY_T
Short
public static final CIMDataType SINT16_T
Short
public static final int SINT32
Integer
,
Constant Field Valuespublic static final CIMDataType SINT32_ARRAY_T
Integer
public static final CIMDataType SINT32_T
Integer
public static final int SINT64
Long
,
Constant Field Valuespublic static final CIMDataType SINT64_ARRAY_T
Long
public static final CIMDataType SINT64_T
Long
public static final int SINT8
Byte
,
Constant Field Valuespublic static final CIMDataType SINT8_ARRAY_T
Byte
public static final CIMDataType SINT8_T
Byte
public static final int STRING
String
,
Constant Field Valuespublic static final CIMDataType STRING_ARRAY_T
String
public static final CIMDataType STRING_T
String
public static final int UINT16
UnsignedInteger16
,
Constant Field Valuespublic static final CIMDataType UINT16_ARRAY_T
UnsignedInteger16
public static final CIMDataType UINT16_T
UnsignedInteger16
public static final int UINT32
UnsignedInteger32
,
Constant Field Valuespublic static final CIMDataType UINT32_ARRAY_T
UnsignedInteger32
public static final CIMDataType UINT32_T
UnsignedInteger32
public static final int UINT64
UnsignedInteger64
,
Constant Field Valuespublic static final CIMDataType UINT64_ARRAY_T
UnsignedInteger64
public static final CIMDataType UINT64_T
UnsignedInteger64
public static final int UINT8
UnsignedInteger8
,
Constant Field Valuespublic static final CIMDataType UINT8_ARRAY_T
UnsignedInteger8
public static final CIMDataType UINT8_T
UnsignedInteger8
Constructor Detail |
public CIMDataType(int pType, int pSize)
pType
- The data type as define in the CIM classpSize
- The maximum number of elements in the array.
java.lang.IllegalArgumentException
- Thrown if the pSize value specified is not a positive
integer.public CIMDataType(java.lang.String pClassName)
pClassName
- The CIM class reference name.public CIMDataType(java.lang.String pClassName, int pSize)
pClassName
- The CIM class reference name.pSize
- The size of the array. 0 indicates the array is unbounded.Method Detail |
public boolean equals(java.lang.Object obj)
obj
- the object to check
public static final CIMDataType getDataType(java.lang.Object o)
o
- The object whose data type to return.
java.lang.IllegalArgumentException
- if o is not a valid CIM Typepublic java.lang.String getRefClassName()
public int getSize()
public int getType()
public boolean isArray()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |