com.servingxml.components.flatfile.recordtype
Class RecordComposition

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

public class RecordComposition
extends java.lang.Object
implements FlatRecordType

Class for flat file record type objects.


Field Summary
 
Fields inherited from interface com.servingxml.components.flatfile.recordtype.FlatRecordType
EMPTY
 
Constructor Summary
RecordComposition(NameSubstitutionExpr recordTypeNameExpr, Name repeatingGroupFieldName, GroupRecognizer groupRecognizer, FlatRecordType sdwlFlatRecordType, FlatRecordType dataFlatRecordType)
           
 
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

RecordComposition

public RecordComposition(NameSubstitutionExpr recordTypeNameExpr,
                         Name repeatingGroupFieldName,
                         GroupRecognizer groupRecognizer,
                         FlatRecordType sdwlFlatRecordType,
                         FlatRecordType dataFlatRecordType)
Method Detail

getDefaultRecord

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

createFlatRecordReader

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

createFlatRecordWriter

public FlatRecordWriter createFlatRecordWriter()
Specified by:
createFlatRecordWriter 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