|
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.DynamicRecordFormat
@ATTR(value="emptyKeyedCollection#Boolean#IMPLIED") public class DynamicRecordFormat
The DynamicRecordFormat class implements a dynamic format for records. It is used to unformat a formatted string into a context or a KeyedCollection when some of the required DataElements do not exist. They are dynamically created.
Field Summary | |
---|---|
(package private) int |
currentSize
|
Fields inherited from class com.ibm.btt.base.KeyedCollectionFormat |
---|
dataElementEmpty, elements |
Fields inherited from class com.ibm.btt.base.FormatElement |
---|
dataElementName, externalizer, name |
Constructor Summary | |
---|---|
DynamicRecordFormat()
This constructor creates a DynamicRecordFormat object. |
|
DynamicRecordFormat(java.lang.String aName)
This constructor creates a DynamicRecordFormat object with name aName. |
Method Summary | |
---|---|
protected void |
addElementFromFormat(java.lang.String aPath,
FormatElement aFormatElement,
KeyedCollection aKeyedCollection)
Extracts the description of an Element from aFormatElement and calls the method setValueAt to add the DataElement to the aKeyedCollection collection. |
protected java.lang.Object |
obtainDataElement(FormatElement aFormatElement,
Context aContext)
Looks for the element which will format aFormatElement. |
protected DataElement |
obtainDataElement(FormatElement aFormatElement,
KeyedCollection aKeyedCollection)
Looks for the element which will format aFormatElement. |
int |
unformat(int ndxFrom,
int ndxTo,
java.lang.String str,
Context ctx)
Returns a data element by unformatting the KeyedCollection using the ctx passed as a parameter. |
int |
unformat(int ndxFrom,
int ndxTo,
java.lang.String aString,
DataElement de)
Returns int by unformatting the KeyedCollection using the data element passed as a parameter. |
int |
unformatContext(int ndxFrom,
int ndxTo,
java.lang.String aString,
Context aContext)
Performs the unformat by looking for the elements to format around the context tree of the aContext passed as a parameter. |
DataElement |
unformatContext(java.lang.String aString,
Context aContext)
Performs the unformat by looking for the elements to format around the context tree of the context passed as a parameter. |
int |
unformatKeyedCollection(int ndxFrom,
int ndxTo,
java.lang.String aString,
KeyedCollection kc)
Performs the unformat by looking for the elements to format around the kc passed as a parameter. |
KeyedCollection |
unformatKeyedCollection(java.lang.String aString,
KeyedCollection aKeyedCollection)
Performs the unformat by looking for the elements to format around the keyedCollection passed as a parameter. |
Methods inherited from class com.ibm.btt.base.RecordFormat |
---|
extract, formatContext, formatKeyedCollection, initializeFrom, toString, toStrings |
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 |
Field Detail |
---|
int currentSize
Constructor Detail |
---|
public DynamicRecordFormat()
public DynamicRecordFormat(java.lang.String aName) throws java.io.IOException
aName
- java.lang.String
java.io.IOException.
java.io.IOException
Method Detail |
---|
protected void addElementFromFormat(java.lang.String aPath, FormatElement aFormatElement, KeyedCollection aKeyedCollection) throws DSEObjectNotFoundException, DSEInvalidArgumentException
aPath
- java.lang.StringaFormatElement
- FormatElementaKeyedCollection
- KeyedCollection
DSEObjectNotFoundException
DSEInvalidArgumentException
protected java.lang.Object obtainDataElement(FormatElement aFormatElement, Context aContext) throws DSEInvalidRequestException
obtainDataElement
in class RecordFormat
aFormatElement
- com.ibm.btt.base.FormatElementaContext
- com.ibm.btt.base.Context
com.ibm.btt.base.DSEInvalidRequestException.
DSEInvalidRequestException
protected DataElement obtainDataElement(FormatElement aFormatElement, KeyedCollection aKeyedCollection) throws DSEInvalidRequestException
obtainDataElement
in class RecordFormat
aFormatElement
- com.ibm.btt.base.FormatElementaKeyedCollection
- com.ibm.btt.base.KeyedCollection
DSEInvalidRequestException
public DataElement unformatContext(java.lang.String aString, Context aContext) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformatContext
in class RecordFormat
aString
- java.lang.StringaContext
- com.ibm.btt.base.Context
DSEInvalidRequestException
DSEInvalidArgumentException
public KeyedCollection unformatKeyedCollection(java.lang.String aString, KeyedCollection aKeyedCollection) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformatKeyedCollection
in class RecordFormat
aString
- java.lang.StringaKeyedCollection
- com.ibm.btt.base.KeyedCollection
DSEInvalidRequestException
DSEInvalidArgumentException
public int unformat(int ndxFrom, int ndxTo, java.lang.String aString, DataElement de) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformat
in class RecordFormat
ndxFrom
- - the initial indexndxTo
- - the final indexaString
- Stringde
- DataElement
DSEInvalidRequestException
DSEInvalidArgumentException
public int unformat(int ndxFrom, int ndxTo, java.lang.String str, Context ctx) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformat
in class RecordFormat
ndxFrom
- - the initial indexndxTo
- - the final indexstr
- java.lang.Stringctx
- com.ibm.btt.base.Context
DSEInvalidRequestException
DSEInvalidArgumentException
public int unformatKeyedCollection(int ndxFrom, int ndxTo, java.lang.String aString, KeyedCollection kc) throws DSEInvalidRequestException, DSEInvalidArgumentException
ndxFrom
- - the initial indexndxTo
- - the final indexaString
- java.lang.Stringkc
- com.ibm.btt.base.KeyedCollection
DSEInvalidRequestException
DSEInvalidArgumentException
public int unformatContext(int ndxFrom, int ndxTo, java.lang.String aString, Context aContext) throws DSEInvalidRequestException, DSEInvalidArgumentException
ndxFrom
- - the initial indexndxTo
- - the final indexaString
- java.lang.StringaContext
- com.ibm.btt.base.Context
DSEInvalidRequestException
DSEInvalidArgumentException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |