|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sblim.cimclient.internal.cim.CIMHelper
public abstract class CIMHelper
Class CIMHelper provides convenience methods that are missing from the official JSR48 API
| Method Summary | |
|---|---|
static CIMInstance |
CIMInstanceWithSynchonizedNumericKeyDataTypes(CIMObjectPath pObjectPath,
CIMProperty<?>[] pProps)
CIMInstanceWithSynchonizedNumericKeyDataTypes returns a CIMInstance where the data types of all numeric keys in the
CIMObjectPath match those of the corresponding keys within
the CIMProperty[]. |
static URI |
createCimomUri(CIMObjectPath pPath)
Creates a URI of a CIMOM from a given CIM object path, adding default port if port not parsable. |
static URI |
createCimomUri(URI pUri)
Creates a URI of a CIMOM from a given URI, adding default port if port not specified. |
static CIMDataType |
ScalarDataType(int pType)
Returns the CIMDataType of a scalar of the specified data type. |
static CIMDataType |
UnboundedArrayDataType(int pType)
Returns the CIMDataType of an unbounded array of the specified data type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static URI createCimomUri(CIMObjectPath pPath)
throws URISyntaxException
pPath - The CIM object path.
URISyntaxException
public static URI createCimomUri(URI pUri)
throws URISyntaxException
pUri - The URI.
URISyntaxExceptionpublic static CIMDataType ScalarDataType(int pType)
pType - Data type.
public static CIMDataType UnboundedArrayDataType(int pType)
pType - Data type.
public static CIMInstance CIMInstanceWithSynchonizedNumericKeyDataTypes(CIMObjectPath pObjectPath,
CIMProperty<?>[] pProps)
CIMInstance where the data types of all numeric keys in the
CIMObjectPath match those of the corresponding keys within
the CIMProperty[].
The need for this conversion mechanism arises from a deficiency in the
CIM-XML specs, where the TYPE (sint8, uint8, etc.) is required for
PROPERTY but not for KEYVALUE. If a CIMOM sends a KEYVALUE of
VALUETYPE="numeric" without TYPE, the Java CIM Client assumes a type of
sint64, uint64 or real64. This can cause problems (i.e.
ClassCastException) down the line if the TYPE of the corresponding
PROPERTY is different.
pObjectPath - Instance object path.pProps - Instance properties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||