com.ibm.btt.base
Class DataMapperExpressionConverterFormat
java.lang.Object
com.ibm.btt.base.FormatElement
com.ibm.btt.base.KeyedCollectionFormat
com.ibm.btt.base.RecordFormat
com.ibm.btt.base.DataMapperFormat
com.ibm.btt.base.DataMapperConverterFormat
com.ibm.btt.base.DataMapperExpressionConverterFormat
- All Implemented Interfaces:
- Cacheable, java.io.Externalizable, java.io.Serializable
public class DataMapperExpressionConverterFormat
- extends DataMapperConverterFormat
Data mapping format class with extension to support mapping from expression
manipulation to context value.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
Asterisk
|
static java.lang.String |
FromExpression
The String from expression |
Method Summary |
protected void |
mapContextToContext(Context inputContext,
Context outputContext,
boolean byReference,
java.lang.String converType,
int append)
The alternative for this algorithm is to create
two dummy contexts. |
protected void |
mapContextToKColl(Context inputContext,
Context outputContext,
java.lang.String toDataField,
boolean byReference,
java.lang.String converType,
int append)
|
protected void |
mapKCollToContext(Context inputContext,
Context outputContext,
java.lang.String fromDataField,
boolean byReference,
java.lang.String converType,
int append)
|
protected void |
mapSingleElement(DataElement fromDataElement,
DataElement toDataElement,
java.lang.String converType,
boolean byReference,
int append)
Maps the contexts of one operation into the context of another operation. |
protected void |
mapSingleElements(DataElement fromDataElement,
DataElement toDataElement,
java.lang.String converType,
boolean byReference,
int append)
The purpose of this method is to perform exact match between data
elements. |
protected void |
mapSingleTag(Context inputContext,
Context outputContext,
Tag element)
Process mapping described in single tag descriptions. |
protected void |
mapSingleTagWithExpression(java.lang.String fromExpression,
java.lang.String toExpression,
Context inputContext,
Context outputContext,
boolean byReference,
java.lang.String converType,
int append)
|
void |
setMapSystemData(boolean value)
Set the flag whether to map BTT internal dse_ system data (like dse_sessionId, dse_processorId ..). |
Methods inherited from class com.ibm.btt.base.KeyedCollectionFormat |
add, addElementAt, addFirst, at, checkIndexes, format, format, getDataElementEmpty, getElements, getEnumeration, reinitialize, removeAll, removeAt, setElements, size, unformat, unformat |
Methods inherited from class com.ibm.btt.base.FormatElement |
exceptionInfo, externalizer, getDataElementName, getExternalizer, getName, getTagName, isCacheable, isConstant, isItConstant, isNull, readExternal, readExternal, readObject, removeExternal, rootDecorated, setDataElementName, setExternalizer, setName, setSize, toTags, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FromExpression
public static final java.lang.String FromExpression
- The String from expression
- See Also:
- Constant Field Values
Asterisk
public static final java.lang.String Asterisk
- See Also:
- Constant Field Values
DataMapperExpressionConverterFormat
public DataMapperExpressionConverterFormat()
mapSingleTagWithExpression
protected void mapSingleTagWithExpression(java.lang.String fromExpression,
java.lang.String toExpression,
Context inputContext,
Context outputContext,
boolean byReference,
java.lang.String converType,
int append)
throws DSEInvalidArgumentException,
DSEInvalidRequestException
- Throws:
DSEInvalidArgumentException
DSEInvalidRequestException
mapSingleTag
protected void mapSingleTag(Context inputContext,
Context outputContext,
Tag element)
throws DSEInvalidArgumentException,
DSEInvalidRequestException
- Description copied from class:
DataMapperConverterFormat
- Process mapping described in single tag descriptions. Such as <map from="fromField" to="toField"/>.
- Overrides:
mapSingleTag
in class DataMapperConverterFormat
- Parameters:
inputContext
- input contextoutputContext
- output contextelement
- tag element read from XML snippet
- Throws:
DSEInvalidArgumentException
DSEInvalidRequestException
mapContextToContext
protected void mapContextToContext(Context inputContext,
Context outputContext,
boolean byReference,
java.lang.String converType,
int append)
throws DSEInvalidRequestException,
DSEInvalidArgumentException
- The alternative for this algorithm is to create
two dummy contexts.
- Throws:
DSEInvalidRequestException
DSEInvalidArgumentException
mapContextToKColl
protected void mapContextToKColl(Context inputContext,
Context outputContext,
java.lang.String toDataField,
boolean byReference,
java.lang.String converType,
int append)
throws DSEInvalidRequestException,
DSEInvalidArgumentException
mapKCollToContext
protected void mapKCollToContext(Context inputContext,
Context outputContext,
java.lang.String fromDataField,
boolean byReference,
java.lang.String converType,
int append)
throws DSEInvalidRequestException,
DSEInvalidArgumentException
- Throws:
DSEInvalidRequestException
DSEInvalidArgumentException
- See Also:
mapContextToKColl
mapSingleElements
protected void mapSingleElements(DataElement fromDataElement,
DataElement toDataElement,
java.lang.String converType,
boolean byReference,
int append)
throws DSEInvalidArgumentException,
DSEInvalidRequestException
- The purpose of this method is to perform exact match between data
elements. The exact match means mapping the sub-data elements one by one
recursively rather than replace 'to' data element with 'from' data
element simply. Actually the mapping can be separated as two groups,
typed data and non-typed data. However mapping for typed data is
implemented by Type component, so only non-typed data is concerned in
this method, the mapping for typed data is same as
DataMapperConverterFormat.
- Overrides:
mapSingleElements
in class DataMapperConverterFormat
- Throws:
DSEInvalidArgumentException
DSEInvalidRequestException
setMapSystemData
public void setMapSystemData(boolean value)
- Set the flag whether to map BTT internal dse_ system data (like dse_sessionId, dse_processorId ..).
This method is used for Req 26 mutiple project support (set value to false).
By default, the value is true, and dse system data is mapped.
mapSingleElement
protected void mapSingleElement(DataElement fromDataElement,
DataElement toDataElement,
java.lang.String converType,
boolean byReference,
int append)
throws DSEInvalidArgumentException,
DSEInvalidRequestException
- Description copied from class:
DataMapperConverterFormat
- Maps the contexts of one operation into the context of another operation.
- Overrides:
mapSingleElement
in class DataMapperConverterFormat
- Throws:
DSEInvalidArgumentException
DSEInvalidRequestException
(c) Copyright IBM Corporation 1998, 2011