public abstract class CIMHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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 java.net.URI |
createCimomUri(CIMObjectPath pPath)
Creates a URI of a CIMOM from a given CIM object path, adding default
port if port not parsable.
|
static java.net.URI |
createCimomUri(java.net.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.
|
public static java.net.URI createCimomUri(CIMObjectPath pPath) throws java.net.URISyntaxException
pPath
- The CIM object path.java.net.URISyntaxException
public static java.net.URI createCimomUri(java.net.URI pUri) throws java.net.URISyntaxException
pUri
- The URI.java.net.URISyntaxException
public 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.Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.