com.ibm.btt.format.impl
Class NullCheckDecorator
java.lang.Object
com.ibm.btt.format.AbstractFormatElement
com.ibm.btt.format.BaseDecorator
com.ibm.btt.format.impl.NullCheckDecorator
- All Implemented Interfaces:
- FormatDecorator, FormatElement
- Direct Known Subclasses:
- JSONNullCheckDecorator
public class NullCheckDecorator
- extends BaseDecorator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NullCheckDecorator
public NullCheckDecorator()
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:
(c) Copyright IBM Corporation 1998, 2008