|
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
com.ibm.btt.format.impl.XMLDecorator
public class XMLDecorator
Field Summary |
---|
Fields inherited from class com.ibm.btt.format.AbstractFormatElement |
---|
dataName, tagName, TOSTRINGS_MARGIN |
Constructor Summary | |
---|---|
XMLDecorator()
|
Method Summary | |
---|---|
protected Message |
addDecoration(Message message)
|
static Message |
escape(Message msg,
java.lang.String encoding)
Replace special characters with XML escapes: |
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 |
protected static byte[] |
getBytes(java.lang.String str,
java.lang.String encoding)
|
java.lang.String |
getDataName()
return the corresponding data element name to this IFormatElment. |
protected Message |
getPostTag(java.lang.String aName)
Returns the tag that follows each DataElement. |
protected Message |
getPreTag(java.lang.String aName)
Returns the tag that preceeds each DataElement. |
protected static java.lang.String |
getStr(byte[] bytes,
java.lang.String encoding)
|
protected Message |
removeDecoration(Message message)
|
static Message |
unescape(Message msg,
java.lang.String encoding)
Replace special characters with XML escapes: |
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.BaseDecorator |
---|
attributes, getDecorated, isContainer, rootDecorated, setDecorated, toStrings |
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 |
Constructor Detail |
---|
public XMLDecorator()
Method Detail |
---|
public Message[] extract(Message message) throws ExtractException
FormatElement
extract
in interface FormatElement
extract
in class BaseDecorator
ExtractException
protected Message addDecoration(Message message) throws FormatException
addDecoration
in class BaseDecorator
FormatException
public java.lang.String getDataName()
FormatElement
getDataName
in interface FormatElement
getDataName
in class BaseDecorator
public Message format(ReadAdapter dataWrapper) throws FormatException
FormatElement
format
in interface FormatElement
format
in class BaseDecorator
FormatException
public void unformat(Message message, WriteAdapter dataAdapter) throws UnformatException
FormatElement
unformat
in interface FormatElement
unformat
in class BaseDecorator
UnformatException
protected Message removeDecoration(Message message) throws UnformatException
removeDecoration
in class BaseDecorator
UnformatException
protected Message getPostTag(java.lang.String aName)
aName
- java.lang.String
java.io.UnsupportedEncodingException
protected Message getPreTag(java.lang.String aName)
aName
- java.lang.String
java.io.UnsupportedEncodingException
public static Message escape(Message msg, java.lang.String encoding) throws java.io.UnsupportedEncodingException
string
- The string to be escaped.
java.io.UnsupportedEncodingException
public static Message unescape(Message msg, java.lang.String encoding) throws java.io.UnsupportedEncodingException
string
- The string to be escaped.
java.io.UnsupportedEncodingException
protected static java.lang.String getStr(byte[] bytes, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
protected static byte[] getBytes(java.lang.String str, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |