java.io.Serializablepublic class CIMDataType
extends java.lang.Object
implements java.io.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 |
| Modifier and Type | Field | Description |
|---|---|---|
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_ARRAY_T |
CIMClass unbounded Array 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 | Description |
|---|---|
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object pObj) |
Checks that the specified
CIMDataType is equal to this
CIMDataType. |
static CIMDataType |
getDataType(java.lang.Object pObj) |
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 type.
|
boolean |
isArray() |
Checks if the data type is an array type.
|
java.lang.String |
toString() |
Returns a
String representation of the
CIMDataType. |
public static final int BOOLEAN
Boolean,
Constant Field Valuespublic static final CIMDataType BOOLEAN_ARRAY_T
Booleanpublic static final CIMDataType BOOLEAN_T
Booleanpublic static final int CHAR16
Character,
Constant Field Valuespublic static final CIMDataType CHAR16_ARRAY_T
Characterpublic static final CIMDataType CHAR16_T
Characterpublic static final int CLASS
public static final CIMDataType CLASS_ARRAY_T
CIMClasspublic static final CIMDataType CLASS_T
CIMClasspublic static final int DATETIME
CIMDateTimeAbsolute,
Constant Field Valuespublic static final CIMDataType DATETIME_ARRAY_T
CIMDateTimeAbsolutepublic static final CIMDataType DATETIME_T
CIMDateTimeAbsolutepublic 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
CIMInstancepublic static final CIMDataType OBJECT_T
CIMInstancepublic static final int REAL32
Float,
Constant Field Valuespublic static final CIMDataType REAL32_ARRAY_T
Floatpublic static final CIMDataType REAL32_T
Floatpublic static final int REAL64
Double,
Constant Field Valuespublic static final CIMDataType REAL64_ARRAY_T
Doublepublic static final CIMDataType REAL64_T
Doublepublic static final int REFERENCE
CIMObjectPath,
Constant Field Valuespublic static final int SINT16
Short,
Constant Field Valuespublic static final CIMDataType SINT16_ARRAY_T
Shortpublic static final CIMDataType SINT16_T
Shortpublic static final int SINT32
Integer,
Constant Field Valuespublic static final CIMDataType SINT32_ARRAY_T
Integerpublic static final CIMDataType SINT32_T
Integerpublic static final int SINT64
public static final CIMDataType SINT64_ARRAY_T
Longpublic static final CIMDataType SINT64_T
Longpublic static final int SINT8
Byte,
Constant Field Valuespublic static final CIMDataType SINT8_ARRAY_T
Bytepublic static final CIMDataType SINT8_T
Bytepublic static final int STRING
String,
Constant Field Valuespublic static final CIMDataType STRING_ARRAY_T
Stringpublic static final CIMDataType STRING_T
Stringpublic static final int UINT16
UnsignedInteger16,
Constant Field Valuespublic static final CIMDataType UINT16_ARRAY_T
UnsignedInteger16public static final CIMDataType UINT16_T
UnsignedInteger16public static final int UINT32
UnsignedInteger32,
Constant Field Valuespublic static final CIMDataType UINT32_ARRAY_T
UnsignedInteger32public static final CIMDataType UINT32_T
UnsignedInteger32public static final int UINT64
UnsignedInteger64,
Constant Field Valuespublic static final CIMDataType UINT64_ARRAY_T
UnsignedInteger64public static final CIMDataType UINT64_T
UnsignedInteger64public static final int UINT8
UnsignedInteger8,
Constant Field Valuespublic static final CIMDataType UINT8_ARRAY_T
UnsignedInteger8public static final CIMDataType UINT8_T
UnsignedInteger8public CIMDataType(int pType,
int pSize)
throws java.lang.IllegalArgumentException
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 data type.pType - The data type as defined in the CIM class.pSize - The maximum number of elements in the array.java.lang.IllegalArgumentException - If the pSize value specified is not a positive
integer.public CIMDataType(java.lang.String pClassName)
pClassName - The CIM class reference name.java.lang.IllegalArgumentException - If the pClassName is null.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.java.lang.IllegalArgumentException - If the pClassName is null.public boolean equals(java.lang.Object pObj)
CIMDataType is equal to this
CIMDataType.equals in class java.lang.ObjectpObj - The object to compare.true if the specified object is equal to this
CIMDataType; false otherwise.public static final CIMDataType getDataType(java.lang.Object pObj) throws java.lang.IllegalArgumentException
pObj - The object whose data type is to be returned.java.lang.IllegalArgumentException - If pObj is not a valid CIM Type.public java.lang.String getRefClassName()
public int getSize()
public int getType()
public boolean isArray()
true if the data type is an array type,
false otherwise.public java.lang.String toString()
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.toString in class java.lang.ObjectCopyright © 2005, 2013 IBM Corporation. All Rights Reserved.