IBM Bank Transformation Toolkit Javadoc

com.ibm.btt.format.impl
Class NullCheckDecorator

java.lang.Object
  extended by com.ibm.btt.format.AbstractFormatElement
      extended by com.ibm.btt.format.BaseDecorator
          extended by com.ibm.btt.format.impl.NullCheckDecorator
All Implemented Interfaces:
FormatDecorator, FormatElement
Direct Known Subclasses:
JSONNullCheckDecorator

public class NullCheckDecorator
extends BaseDecorator


Field Summary
 
Fields inherited from class com.ibm.btt.format.AbstractFormatElement
dataName, tagName, TOSTRINGS_MARGIN
 
Constructor Summary
NullCheckDecorator()
           
 
Method Summary
protected  Message addDecoration(Message message)
           
protected  java.util.Map<java.lang.String,java.lang.String> attributes()
          Generic attributes method.
 Message format(ReadAdapter dataWrapper)
          This method is attended to be called by client code of FormatElement
protected  Message removeDecoration(Message message)
           
 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
extract, getDataName, 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

NullCheckDecorator

public NullCheckDecorator()
Method Detail

addDecoration

protected Message addDecoration(Message message)
                         throws FormatException
Specified by:
addDecoration in class BaseDecorator
Throws:
FormatException

removeDecoration

protected Message removeDecoration(Message message)
                            throws UnformatException
Specified by:
removeDecoration in class BaseDecorator
Throws:
UnformatException

format

public Message format(ReadAdapter dataWrapper)
               throws FormatException
Description copied from interface: FormatElement
This method is attended to be called by client code of FormatElement

Specified by:
format in interface FormatElement
Overrides:
format in class BaseDecorator
Returns:
Throws:
FormatException

unformat

public void unformat(Message message,
                     WriteAdapter dataAdapter)
              throws UnformatException
Description copied from interface: FormatElement
This method is attended to be called by client code of FormatElement

Specified by:
unformat in interface FormatElement
Overrides:
unformat in class BaseDecorator
Throws:
UnformatException

attributes

protected java.util.Map<java.lang.String,java.lang.String> attributes()
Description copied from class: AbstractFormatElement
Generic attributes method. This method parse throw the 'get' methods of the class, and finds out all the attributes of the bean. It is a simple implementation. Customers are recommended to override this method.

Overrides:
attributes in class BaseDecorator
Returns:

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008