org.sblim.cimclient.internal.cim
Class CIMInstanceBuilder

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

public class CIMInstanceBuilder
extends java.lang.Object

Class CIMInstanceBuilder provides help for CIMInstance(CIMObjectPath, CIMProperty[]) constructor.

CIMObjectPath param has to contain the key properties only.
( VALUE.NAMEDINSTANCE->INSTANCENAME->KEYBINDING )
CIMProperty[] param has to contain all properties, including key properties.
( VALUE.NAMEDINSTANCE->INSTANCE->PROPERTY* )
The implementation merges the properties from both params.
From CIMObjectPath's keys only the type and value information is considered.


Constructor Summary
CIMInstanceBuilder(CIMObjectPath pPath, CIMProperty<?>[] pProps)
          Ctor.
 
Method Summary
 CIMProperty<?>[] getAllPropertis()
          getAllPropertis
 CIMObjectPath setKeys(CIMObjectPath pPath)
          Extends the keys of the passed CIMObjectPath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CIMInstanceBuilder

public CIMInstanceBuilder(CIMObjectPath pPath,
                          CIMProperty<?>[] pProps)
                   throws java.lang.IllegalArgumentException
Ctor.

Parameters:
pPath -
pProps -
Throws:
java.lang.IllegalArgumentException
Method Detail

setKeys

public CIMObjectPath setKeys(CIMObjectPath pPath)
Extends the keys of the passed CIMObjectPath.

Parameters:
pPath -
Returns:
the new CIMObjectPath

getAllPropertis

public CIMProperty<?>[] getAllPropertis()
getAllPropertis

Returns:
all properties in an ordered way


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