public class Preprocessor extends ProcessorSupport
ParserFactorySupport
compiles the configuration into parser components.Modifier and Type | Field and Description |
---|---|
protected PropertyConfig |
propertyRoot |
protected StreamConfig |
stream |
Constructor and Description |
---|
Preprocessor(StreamConfig stream)
Constructs a new Preprocessor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalizeGroup(GroupConfig group)
Finalizes a group configuration after its children have been processed.
|
protected void |
finalizeRecord(RecordConfig record)
Finalizes a record configuration after its children have been processed.
|
protected void |
finalizeSegment(SegmentConfig segment)
Finalizes a segment configuration after its children have been processed.
|
protected void |
finalizeStream(StreamConfig stream)
Finalizes a stream configuration after its children have been processed.
|
protected void |
handleConstant(ConstantConfig constant)
Processes a constant configuration.
|
protected void |
handleField(FieldConfig field)
Processes a field configuration.
|
protected void |
initializeGroup(GroupConfig group)
Initializes a group configuration before its children have been processed.
|
protected void |
initializeRecord(RecordConfig record)
Initializes a record configuration before its children have been processed.
|
protected void |
initializeSegment(SegmentConfig segment)
Initializes a segment configuration before its children have been processed.
|
protected void |
initializeStream(StreamConfig stream)
Initializes a stream configuration before its children have been processed.
|
protected void |
validateRecordIdentifyingCriteria(FieldConfig field)
This method validates a record identifying field has a literal or regular expression
configured for identifying a record.
|
getParent, handleComponent, process
protected StreamConfig stream
protected PropertyConfig propertyRoot
public Preprocessor(StreamConfig stream)
stream
- the stream configuration to preprocessprotected void initializeStream(StreamConfig stream) throws BeanIOConfigurationException
initializeStream
in class ProcessorSupport
stream
- the stream configuration to processBeanIOConfigurationException
protected void finalizeStream(StreamConfig stream) throws BeanIOConfigurationException
finalizeStream
in class ProcessorSupport
stream
- the stream configuration to finalizeBeanIOConfigurationException
protected void initializeGroup(GroupConfig group) throws BeanIOConfigurationException
initializeGroup
in class ProcessorSupport
group
- the group configuration to processBeanIOConfigurationException
protected void finalizeGroup(GroupConfig group) throws BeanIOConfigurationException
finalizeGroup
in class ProcessorSupport
group
- the group configuration to finalizeBeanIOConfigurationException
protected void initializeRecord(RecordConfig record) throws BeanIOConfigurationException
initializeRecord
in class ProcessorSupport
record
- the record configuration to processBeanIOConfigurationException
protected void finalizeRecord(RecordConfig record) throws BeanIOConfigurationException
finalizeRecord
in class ProcessorSupport
record
- the record configuration to processBeanIOConfigurationException
protected void initializeSegment(SegmentConfig segment) throws BeanIOConfigurationException
initializeSegment
in class ProcessorSupport
segment
- the segment configuration to processBeanIOConfigurationException
protected void finalizeSegment(SegmentConfig segment) throws BeanIOConfigurationException
finalizeSegment
in class ProcessorSupport
segment
- the segment configuration to processBeanIOConfigurationException
protected void handleField(FieldConfig field) throws BeanIOConfigurationException
handleField
in class ProcessorSupport
field
- the field configuration to processBeanIOConfigurationException
protected void handleConstant(ConstantConfig constant) throws BeanIOConfigurationException
handleConstant
in class ProcessorSupport
constant
- the constant configuration to processBeanIOConfigurationException
protected void validateRecordIdentifyingCriteria(FieldConfig field) throws BeanIOConfigurationException
field
- the record identifying field configuration to validateBeanIOConfigurationException