org.sblim.cimclient.internal.cim
Class CIMHelper

java.lang.Object
  extended by org.sblim.cimclient.internal.cim.CIMHelper

public abstract class CIMHelper
extends Object

Class CIMHelper provides convenience methods that are missing from the official JSR48 API


Method Summary
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

createCimomUri

public static URI createCimomUri(CIMObjectPath pPath)
                          throws URISyntaxException
Creates a URI of a CIMOM from a given CIM object path, adding default port if port not parsable.

Parameters:
pPath - The CIM object path.
Returns:
The URI.
Throws:
URISyntaxException

createCimomUri

public static URI createCimomUri(URI pUri)
                          throws URISyntaxException
Creates a URI of a CIMOM from a given URI, adding default port if port not specified.

Parameters:
pUri - The URI.
Returns:
The URI.
Throws:
URISyntaxException

ScalarDataType

public static CIMDataType ScalarDataType(int pType)
Returns the CIMDataType of a scalar of the specified data type. This should be used in lieu of "new CIMDataType(pType)" which is not supported by the JSR48 standard.

Parameters:
pType - Data type.
Returns:
CIMDataType corresponding to data type.

UnboundedArrayDataType

public static CIMDataType UnboundedArrayDataType(int pType)
Returns the CIMDataType of an unbounded array of the specified data type. This should be used in lieu of "new CIMDataType(pType,0)" which is not supported by the JSR48 standard.

Parameters:
pType - Data type.
Returns:
CIMDataType corresponding to data type.


Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.