javax.cim
public class CIMDataType extends Object implements Serializable
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(String pClassName)
Creates a new CIM REFERENCE data type object with the specified class
reference.
| |
CIMDataType(String pClassName, int pSize)
Creates a new CIM REFERENCE_ARRAY data type object with the specified
class reference.
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Checks that the specified object is a CIM data type.
|
static CIMDataType | getDataType(Object o)
Get the data type of an object.
|
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 type.
|
boolean | isArray()
Checks if the data type is an array type.
|
String | toString()
Returns a String representation of the
CIMDataType . |
See Also: Boolean
See Also: Boolean
See Also: Boolean
See Also: Character
See Also: Character
See Also: Character
See Also: CIMClass
See Also: CIMDateTimeAbsolute
See Also: CIMDateTimeAbsolute
See Also: CIMDateTimeAbsolute
See Also: CIMInstance
See Also: CIMInstance
See Also: CIMInstance
See Also: Float
See Also: Float
See Also: Float
See Also: Double
See Also: Double
See Also: Double
See Also: CIMObjectPath
See Also: Short
See Also: Short
See Also: Short
See Also: Integer
See Also: Integer
See Also: Integer
See Also: Long
See Also: Long
See Also: Byte
See Also: Byte
See Also: Byte
See Also: String
See Also: String
See Also: String
See Also: UnsignedInteger16
See Also: UnsignedInteger16
See Also: UnsignedInteger16
See Also: UnsignedInteger32
See Also: UnsignedInteger32
See Also: UnsignedInteger32
See Also: UnsignedInteger64
See Also: UnsignedInteger64
See Also: UnsignedInteger64
See Also: UnsignedInteger8
See Also: UnsignedInteger8
See Also: UnsignedInteger8
CIMDataType
array object of the specified
type and size. This should only be used when the size is being
limited/defined as part of the datatype.
Parameters: pType - The data type as define in the CIM class. pSize - The maximum number of elements in the array. 0 is used for variable size.
Throws: IllegalArgumentException
Thrown if the pSize
value specified is not a
positive integer.
Parameters: pClassName - The CIM class reference name.
Parameters: pClassName - The CIM class reference name. pSize The size of the array. 0 indicates the array is unbounded.
Parameters: obj - the object to check
See Also: java.lang.Object#equals(java.lang.Object)
Parameters: o - The object whose data type to return.
Returns: The data type of the specified object.
Throws: IllegalArgumentException -
if o
is not a valid CIM Type
Returns: The CIM REFERENCE class name.
Returns: The maximum size of the array data type.
Returns: The data type.
Returns: true
if the data type is an array type,
false
otherwise.
String
representation of the
CIMDataType
. This method is intended to be used only for
debugging purposes, and the format of the returned string may vary
between implementations. The returned string may be empty but may not be
null
.
Returns: A string representation of this data type.
See Also: java.lang.Object#toString()