|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.FormatElement
com.ibm.btt.base.KeyedCollectionFormat
com.ibm.btt.base.RecordFormat
com.ibm.btt.base.DataMapperFormat
com.ibm.btt.base.DataMapperExpressionConverterFormat
public class DataMapperExpressionConverterFormat
Data mapping format class with extension to support mapping from expression manipulation to context value.
Nested Class Summary | |
---|---|
static interface |
DataMapperExpressionConverterFormat.ElementMappingFilter
The interface for filtering the data elements which will be mapped or not. |
protected static interface |
DataMapperExpressionConverterFormat.ICollIterator
The logic invoked from IndexedCollection iteration during mapping. |
protected class |
DataMapperExpressionConverterFormat.MapParams
Parameters related to single map definition. |
protected class |
DataMapperExpressionConverterFormat.WildcardInvalidArgumentException
The exception used for invalid wildcard mapping definitions. |
Field Summary | |
---|---|
protected static int |
APPEND_FALSE
The false value for the append attribute. |
protected static int |
APPEND_IGNORE
The ignore value for the append attribute. |
protected static int |
APPEND_TRUE
The true value for the append attribute. |
static java.lang.String |
ByReference
The String byReference |
static java.lang.String |
ConversioType
The String convType |
protected DataMapperExpressionConverterFormat.ElementMappingFilter |
elementFilter
Filter the source mapping elements |
protected static ExpressionEval |
expressionEval
Utility expression execution engine, global static |
static java.lang.String |
From
The String from |
static java.lang.String |
FromExpression
The String from expression |
static java.lang.Object |
INTERRUPT
The constant variable to interrupt current mapping, may return from global functions |
protected static java.lang.String |
SEPERATOR
The splitter characters for wildcard expression including: "(", ")", ",", "+", "-", "*", "/", "&&", "||", "! |
Fields inherited from class com.ibm.btt.base.KeyedCollectionFormat |
---|
dataElementEmpty, elements |
Fields inherited from class com.ibm.btt.base.FormatElement |
---|
dataElementName, externalizer, name, xmlSupport |
Constructor Summary | |
---|---|
DataMapperExpressionConverterFormat()
|
Method Summary | |
---|---|
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a RecordFormat with the Tag attributes. |
protected void |
iterateIndexedCollection(IndexedCollection from,
IndexedCollection to,
DataMapperExpressionConverterFormat.MapParams params,
DataMapperExpressionConverterFormat.ICollIterator iterator)
Iterate Indexed Collection and process the logic defined in ICollIterator . |
void |
mapContents(Context inputContext,
Context outputContext)
Maps the contexts of a context into another context. |
protected void |
mapContents(Context inputContext,
Context outputContext,
DataMapperExpressionConverterFormat.MapParams params)
Map input context to output context using desired mapping parameters |
protected void |
mapContextToKColl(Context fromCtx,
KeyedCollection to,
DataMapperExpressionConverterFormat.MapParams params)
Iterate to KeyedCollection, map each data from sourceCtx with the same data element name. |
protected void |
mapDataField(DataField from,
DataField to,
DataMapperExpressionConverterFormat.MapParams params)
Mapping between DataFileds. |
protected void |
mapElement(DataElement from,
DataElement to,
DataMapperExpressionConverterFormat.MapParams params)
Mapping between abstract Data Elements such as DataField, KeyedCollection, IndexedCollection, etc. |
protected void |
mapIndexedCollection(IndexedCollection from,
IndexedCollection to,
DataMapperExpressionConverterFormat.MapParams params)
Mapping between IndexedCollections. |
protected void |
mapKeyedCollection(KeyedCollection from,
KeyedCollection to,
DataMapperExpressionConverterFormat.MapParams params)
Mapping between KeyedCollections. |
protected void |
mapValueToWildcard(Context inputContext,
Context outputContext,
DataMapperExpressionConverterFormat.MapParams params,
java.lang.String targetIteration)
Support mapping from expression value(constant for instance) to elements in IndexedCollection. |
void |
setElementFilter(DataMapperExpressionConverterFormat.ElementMappingFilter elementFilter)
Set filter instance to filter out the source data elements which do not need to map. |
Methods inherited from class com.ibm.btt.base.DataMapperFormat |
---|
toStrings |
Methods inherited from class com.ibm.btt.base.RecordFormat |
---|
extract, formatContext, formatKeyedCollection, obtainDataElement, obtainDataElement, toString, unformat, unformat, unformatContext, unformatKeyedCollection |
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, getAttributeValueForXMLFormat, 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 |
Field Detail |
---|
protected static final int APPEND_IGNORE
protected static final int APPEND_TRUE
protected static final int APPEND_FALSE
public static final java.lang.String From
public static final java.lang.String ConversioType
public static final java.lang.String ByReference
public static final java.lang.String FromExpression
protected static final java.lang.String SEPERATOR
protected DataMapperExpressionConverterFormat.ElementMappingFilter elementFilter
protected static ExpressionEval expressionEval
public static final java.lang.Object INTERRUPT
Constructor Detail |
---|
public DataMapperExpressionConverterFormat()
Method Detail |
---|
public void mapContents(Context inputContext, Context outputContext) throws DSEInvalidArgumentException, DSEInvalidClassException, DSEInvalidRequestException
DataMapperFormat
mapContents
in class DataMapperFormat
inputContext
- com.ibm.btt.base.ContextoutputContext
- com.ibm.btt.base.Context
DSEInvalidArgumentException
DSEInvalidClassException
DSEInvalidRequestException
protected void mapContents(Context inputContext, Context outputContext, DataMapperExpressionConverterFormat.MapParams params) throws DSEInvalidArgumentException, DSEInvalidRequestException
inputContext
- input contextoutputContext
- output contextparams
- mapping parameters
DSEInvalidArgumentException
DSEInvalidRequestException
protected void mapValueToWildcard(Context inputContext, Context outputContext, DataMapperExpressionConverterFormat.MapParams params, java.lang.String targetIteration) throws DSEInvalidArgumentException, DSEInvalidRequestException
inputContext
- input contextoutputContext
- output contextparams
- mapping parameterstargetIteration
- iteration string for "to" attribute, in order to replace * with detailed numbers
DSEInvalidArgumentException
DSEInvalidRequestException
protected void mapElement(DataElement from, DataElement to, DataMapperExpressionConverterFormat.MapParams params) throws DSEInvalidArgumentException, DSEInvalidRequestException
DSEInvalidArgumentException
DSEInvalidRequestException
protected void mapKeyedCollection(KeyedCollection from, KeyedCollection to, DataMapperExpressionConverterFormat.MapParams params) throws DSEInvalidArgumentException, DSEInvalidRequestException
DSEInvalidArgumentException
DSEInvalidRequestException
protected void mapContextToKColl(Context fromCtx, KeyedCollection to, DataMapperExpressionConverterFormat.MapParams params) throws DSEInvalidArgumentException, DSEInvalidRequestException
DSEInvalidArgumentException
DSEInvalidRequestException
protected void mapIndexedCollection(IndexedCollection from, IndexedCollection to, DataMapperExpressionConverterFormat.MapParams params) throws DSEInvalidArgumentException, DSEInvalidRequestException
DSEInvalidArgumentException
DSEInvalidRequestException
protected final void iterateIndexedCollection(IndexedCollection from, IndexedCollection to, DataMapperExpressionConverterFormat.MapParams params, DataMapperExpressionConverterFormat.ICollIterator iterator) throws DSEInvalidArgumentException, DSEInvalidRequestException
ICollIterator
.
from
- from IndexedCollectionto
- to IndexedCollectionparams
- mapping parametersiterator
- the logic to process during iterate
DSEInvalidArgumentException
DSEInvalidRequestException
protected void mapDataField(DataField from, DataField to, DataMapperExpressionConverterFormat.MapParams params) throws DSEInvalidArgumentException, DSEInvalidRequestException
DSEInvalidArgumentException
DSEInvalidRequestException
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
RecordFormat
initializeFrom
in class RecordFormat
aTag
- com.ibm.btt.base.Tag
java.io.IOException
public void setElementFilter(DataMapperExpressionConverterFormat.ElementMappingFilter elementFilter)
elementFilter
- the instance for filtering the data elements which will be mapped or not.
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |