com.servingxml.components.flatfile.recordtype
Class FlatRecordTypeChoice

java.lang.Object
  extended by com.servingxml.components.flatfile.recordtype.FlatRecordTypeChoice
All Implemented Interfaces:
FlatRecordType

public class FlatRecordTypeChoice
extends java.lang.Object
implements FlatRecordType

The FlatRecordTypeChoice implements a FlatRecordTypeChoice.


Field Summary
 
Fields inherited from interface com.servingxml.components.flatfile.recordtype.FlatRecordType
EMPTY
 
Constructor Summary
FlatRecordTypeChoice(Environment env, FlatRecordType defaultRecordType, FlatRecordTypeSelection[] flatRecordTypeSelections, XsltChooser chooser)
           
 
Method Summary
 FlatRecordReader createFlatRecordReader()
           
 FlatRecordWriter createFlatRecordWriter()
           
 Record getDefaultRecord(ServiceContext context, Flow flow)
           
 boolean isBinary()
           
 boolean isFixedLength()
           
 boolean isText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatRecordTypeChoice

public FlatRecordTypeChoice(Environment env,
                            FlatRecordType defaultRecordType,
                            FlatRecordTypeSelection[] flatRecordTypeSelections,
                            XsltChooser chooser)
Method Detail

createFlatRecordReader

public FlatRecordReader createFlatRecordReader()
Specified by:
createFlatRecordReader in interface FlatRecordType

createFlatRecordWriter

public FlatRecordWriter createFlatRecordWriter()
Specified by:
createFlatRecordWriter in interface FlatRecordType

getDefaultRecord

public Record getDefaultRecord(ServiceContext context,
                               Flow flow)
Specified by:
getDefaultRecord in interface FlatRecordType

isText

public boolean isText()
Specified by:
isText in interface FlatRecordType

isBinary

public boolean isBinary()
Specified by:
isBinary in interface FlatRecordType

isFixedLength

public boolean isFixedLength()
Specified by:
isFixedLength in interface FlatRecordType