| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.internal.compiler.ProcessorSupport
org.beanio.internal.compiler.Preprocessor
public class Preprocessor
A Preprocesser is responsible for validating a stream configuration, setting
 default configuration values, and populating any calculated values before the
 ParserFactorySupport compiles the configuration into parser components.
| Field Summary | |
|---|---|
| protected  PropertyConfig | propertyRoot | 
| protected  StreamConfig | stream | 
| Constructor Summary | |
|---|---|
| Preprocessor(StreamConfig stream)Constructs a new Preprocessor. | |
| Method Summary | |
|---|---|
| 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. | 
| Methods inherited from class org.beanio.internal.compiler.ProcessorSupport | 
|---|
| getParent, handleComponent, process | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected StreamConfig stream
protected PropertyConfig propertyRoot
| Constructor Detail | 
|---|
public Preprocessor(StreamConfig stream)
stream - the stream configuration to preprocess| Method Detail | 
|---|
protected void initializeStream(StreamConfig stream)
                         throws BeanIOConfigurationException
initializeStream in class ProcessorSupportstream - the stream configuration to process
BeanIOConfigurationException
protected void finalizeStream(StreamConfig stream)
                       throws BeanIOConfigurationException
finalizeStream in class ProcessorSupportstream - the stream configuration to finalize
BeanIOConfigurationException
protected void initializeGroup(GroupConfig group)
                        throws BeanIOConfigurationException
initializeGroup in class ProcessorSupportgroup - the group configuration to process
BeanIOConfigurationException
protected void finalizeGroup(GroupConfig group)
                      throws BeanIOConfigurationException
finalizeGroup in class ProcessorSupportgroup - the group configuration to finalize
BeanIOConfigurationException
protected void initializeRecord(RecordConfig record)
                         throws BeanIOConfigurationException
initializeRecord in class ProcessorSupportrecord - the record configuration to process
BeanIOConfigurationException
protected void finalizeRecord(RecordConfig record)
                       throws BeanIOConfigurationException
finalizeRecord in class ProcessorSupportrecord - the record configuration to process
BeanIOConfigurationException
protected void initializeSegment(SegmentConfig segment)
                          throws BeanIOConfigurationException
initializeSegment in class ProcessorSupportsegment - the segment configuration to process
BeanIOConfigurationException
protected void finalizeSegment(SegmentConfig segment)
                        throws BeanIOConfigurationException
finalizeSegment in class ProcessorSupportsegment - the segment configuration to process
BeanIOConfigurationException
protected void handleField(FieldConfig field)
                    throws BeanIOConfigurationException
handleField in class ProcessorSupportfield - the field configuration to process
BeanIOConfigurationException
protected void handleConstant(ConstantConfig constant)
                       throws BeanIOConfigurationException
handleConstant in class ProcessorSupportconstant - the constant configuration to process
BeanIOConfigurationException
protected void validateRecordIdentifyingCriteria(FieldConfig field)
                                          throws BeanIOConfigurationException
field - the record identifying field configuration to validate
BeanIOConfigurationException| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||