|
IBM 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.format.impl.FormatAdapter
public class FormatAdapter
This FormatElement subclasses from com.ibm.btt.base.FormatElement. It is used as a Interface Adapter from com.ibm.btt.format.FormatElement to com.ibm.btt.base.FormatElement. With this class, we keep the other BTT components (such as operation, processor, channel and CSM) unchanged, and can switch to use new Formatter or old Formatter.
Field Summary |
---|
Fields inherited from class com.ibm.btt.base.FormatElement |
---|
dataElementName, name |
Constructor Summary | |
---|---|
FormatAdapter()
|
Method Summary | |
---|---|
java.lang.String[] |
extract(java.lang.String aString)
Extracts (strips) the substring corresponding to the format element from the input String and returns it and the remaining String as the elements of an array. |
java.lang.String |
format(Context aContext)
Throws an Exception. |
java.lang.String |
format(DataElement aDataElement)
Format abstract class. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a FormatElement with the Tag attributes. |
java.lang.Boolean |
isConstant()
Returns false. |
boolean |
isItConstant()
Returns false. |
java.lang.String |
toString()
Returns a visual representation of this format element. |
DataElement |
unformat(java.lang.String aString,
Context aContext)
Throws an Exception. |
DataElement |
unformat(java.lang.String aString,
DataElement aDataElement)
Unformat abstract method. |
Methods inherited from class com.ibm.btt.base.FormatElement |
---|
checkIndexes, exceptionInfo, externalizer, getDataElementName, getExternalizer, getName, getTagName, isCacheable, isNull, readExternal, readExternal, readObject, reinitialize, removeExternal, rootDecorated, setDataElementName, setExternalizer, setName, setSize, toStrings, toTags, unformat, unformat, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FormatAdapter()
Method Detail |
---|
public java.lang.String format(DataElement aDataElement) throws DSEInvalidClassException, DSEInvalidRequestException, DSEInvalidArgumentException
FormatElement
format
in class FormatElement
aDataElement
- DataElement
DSEInvalidClassException
DSEInvalidRequestException
DSEInvalidArgumentException
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
FormatElement
initializeFrom
in class FormatElement
aTag
- com.ibm.btt.base.Tag
java.io.IOException
DSEException
public DataElement unformat(java.lang.String aString, DataElement aDataElement) throws DSEInvalidRequestException, DSEInvalidArgumentException
FormatElement
unformat
in class FormatElement
DSEInvalidRequestException
DSEInvalidArgumentException
public java.lang.String[] extract(java.lang.String aString) throws DSEInvalidArgumentException
FormatElement
extract
in class FormatElement
aString
- String
DSEInvalidArgumentException
public java.lang.String format(Context aContext) throws DSEInvalidClassException, DSEInvalidRequestException, DSEInvalidArgumentException
FormatElement
format
in class FormatElement
aContext
- com.ibm.btt.base.Context
DSEInvalidClassException
DSEInvalidRequestException
DSEInvalidArgumentException
public DataElement unformat(java.lang.String aString, Context aContext) throws DSEInvalidRequestException, DSEInvalidArgumentException
FormatElement
unformat
in class FormatElement
aContext
- com.ibm.btt.base.Context
DSEInvalidRequestException
DSEInvalidArgumentException
public java.lang.Boolean isConstant()
FormatElement
isConstant
in class FormatElement
public boolean isItConstant()
FormatElement
isItConstant
in class FormatElement
public java.lang.String toString()
FormatElement
toString
in class FormatElement
|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |