|
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.format.AbstractFormatElement
com.ibm.btt.format.BaseDecorator
public abstract class BaseDecorator
Field Summary | |
---|---|
(package private) FormatElement |
decorated
|
Fields inherited from class com.ibm.btt.format.AbstractFormatElement |
---|
dataName, tagName, TOSTRINGS_MARGIN |
Constructor Summary | |
---|---|
BaseDecorator()
|
Method Summary | |
---|---|
protected abstract Message |
addDecoration(Message message)
|
protected java.util.Map<java.lang.String,java.lang.String> |
attributes()
Generic attributes method. |
Message[] |
extract(Message message)
Extracts (strips) the subMessage corresponding to the FormatElement from the input Message and returns it and the remaining Message as the elements of an array. |
Message |
format(ReadAdapter dataWrapper)
This method is attended to be called by client code of FormatElement |
java.lang.String |
getDataName()
return the corresponding data element name to this IFormatElment. |
FormatElement |
getDecorated()
This method is not attended to be called by client code of FormatElement |
boolean |
isContainer()
if true, this FormatElement has children. if false, this FormatElement has no children. |
protected abstract Message |
removeDecoration(Message message)
|
FormatElement |
rootDecorated()
This method is not attended to be called by client code of FormatElement |
void |
setDecorated(FormatElement format)
This method is not attended to be called by client code of FormatElement |
java.util.List<java.lang.String> |
toStrings()
This method is used to support AbstractFormatElement.toString() method Client code of Formatter is not allowed to call it. |
void |
unformat(Message message,
WriteAdapter dataAdapter)
This method is attended to be called by client code of FormatElement |
Methods inherited from class com.ibm.btt.format.AbstractFormatElement |
---|
setDataName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
FormatElement decorated
Constructor Detail |
---|
public BaseDecorator()
Method Detail |
---|
public FormatElement getDecorated()
FormatDecorator
getDecorated
in interface FormatDecorator
public void setDecorated(FormatElement format)
FormatDecorator
setDecorated
in interface FormatDecorator
public java.lang.String getDataName()
FormatElement
getDataName
in interface FormatElement
getDataName
in class AbstractFormatElement
public Message[] extract(Message message) throws ExtractException
FormatElement
extract
in interface FormatElement
extract
in class AbstractFormatElement
ExtractException
public Message format(ReadAdapter dataWrapper) throws FormatException
FormatElement
format
in interface FormatElement
FormatException
public boolean isContainer()
FormatElement
isContainer
in interface FormatElement
public FormatElement rootDecorated()
FormatElement
rootDecorated
in interface FormatElement
rootDecorated
in class AbstractFormatElement
public void unformat(Message message, WriteAdapter dataAdapter) throws UnformatException
FormatElement
unformat
in interface FormatElement
UnformatException
protected abstract Message addDecoration(Message message) throws FormatException
FormatException
protected abstract Message removeDecoration(Message message) throws UnformatException
UnformatException
public java.util.List<java.lang.String> toStrings()
FormatElement
toStrings
in interface FormatElement
toStrings
in class AbstractFormatElement
protected java.util.Map<java.lang.String,java.lang.String> attributes()
AbstractFormatElement
attributes
in class AbstractFormatElement
|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |