IBM Bank Transformation Toolkit Javadoc

com.ibm.btt.format
Class CompositeFormat

java.lang.Object
  extended by com.ibm.btt.format.AbstractFormatElement
      extended by com.ibm.btt.format.CompositeFormat
All Implemented Interfaces:
FormatElement
Direct Known Subclasses:
IndexedFormat, RecordFormat

public abstract class CompositeFormat
extends AbstractFormatElement
implements FormatElement


Field Summary
protected  java.util.List<FormatElement> children
           
 
Fields inherited from class com.ibm.btt.format.AbstractFormatElement
dataName, tagName, TOSTRINGS_MARGIN
 
Constructor Summary
CompositeFormat()
           
 
Method Summary
 void addChild(FormatElement child)
           
 java.util.List<FormatElement> getChildren()
           
 boolean isContainer()
          if true, this FormatElement has children. if false, this FormatElement has no children.
 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.
 
Methods inherited from class com.ibm.btt.format.AbstractFormatElement
attributes, extract, getDataName, rootDecorated, setDataName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.btt.format.FormatElement
extract, format, getDataName, rootDecorated, unformat
 

Field Detail

children

protected java.util.List<FormatElement> children
Constructor Detail

CompositeFormat

public CompositeFormat()
Method Detail

isContainer

public boolean isContainer()
Description copied from interface: FormatElement
if true, this FormatElement has children. if false, this FormatElement has no children.

For example:
com.ibm.btt.format.CompositeFormat and its sub class will always return true;
com.ibm.btt.format.FiledFormat and its sub class will always return false;
com.ibm.btt.format.FormatDecorator and its subclass will delegate this method to its decorated FormatElement.

Specified by:
isContainer in interface FormatElement
Returns:

addChild

public void addChild(FormatElement child)

getChildren

public java.util.List<FormatElement> getChildren()

toStrings

public java.util.List<java.lang.String> toStrings()
Description copied from interface: FormatElement
This method is used to support AbstractFormatElement.toString() method
Client code of Formatter is not allowed to call it.
But subclasses of AbstractFormatElement are allowed to override this method to customize its toString() method.

Specified by:
toStrings in interface FormatElement
Overrides:
toStrings in class AbstractFormatElement
Returns:
List of Strings that represent the FormatElement.

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008