com.ibm.bpc.clientcore
Class DataObjectUtils

java.lang.Object
  extended bycom.ibm.bpc.clientcore.DataObjectUtils

public class DataObjectUtils
extends java.lang.Object

Provides utilities that facilitate working with DataObjects.


Constructor Summary
DataObjectUtils()
           
 
Method Summary
static java.util.Map getValueMap(commonj.sdo.DataObject dataObject)
          Provides a modifiable map representation of the DataObject.
static commonj.sdo.DataObject putAll(commonj.sdo.DataObject dataObject, java.util.Map valueMap)
          Sets values in the value map on the DataObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataObjectUtils

public DataObjectUtils()
Method Detail

getValueMap

public static java.util.Map getValueMap(commonj.sdo.DataObject dataObject)
Provides a modifiable map representation of the DataObject. The keys in the map are Xpath expressions of all the leaf properties in the DataObject. The values in the map are the Java objects stored in the DataObject. A leaf property is a property that is a simple type with no properties. Wildcard elements and elements for choices are not supported.

Returns:
map A map representation of the DataObject

putAll

public static commonj.sdo.DataObject putAll(commonj.sdo.DataObject dataObject,
                                            java.util.Map valueMap)
Sets values in the value map on the DataObject. The keys of the value map must be Xpath expressions of the leaf properties that are to be modified. The associated values are the values that are set. Wildcard elements and elements for choices are not supported.

Parameters:
dataObject - The DataObject that is to be modified
valueMap - A map representation of the DataObject
Returns:
The modified DataObject.