Package org.beanio.internal.compiler.xml
Class XmlPreprocessor
- java.lang.Object
-
- org.beanio.internal.compiler.ProcessorSupport
-
- org.beanio.internal.compiler.Preprocessor
-
- org.beanio.internal.compiler.xml.XmlPreprocessor
-
public class XmlPreprocessor extends Preprocessor
ConfigurationPreprocessorfor an XML stream format.- Since:
- 2.0
-
-
Field Summary
-
Fields inherited from class org.beanio.internal.compiler.Preprocessor
propertyRoot, stream
-
-
Constructor Summary
Constructors Constructor Description XmlPreprocessor(StreamConfig stream)Constructs a newXmlPreprocessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleField(FieldConfig field)Processes a field configuration.protected voidinitializeGroup(GroupConfig group)Initializes a group configuration before its children have been processed.protected voidinitializeSegment(SegmentConfig segment)Initializes a segment configuration before its children have been processed.protected voidvalidateRecordIdentifyingCriteria(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.Preprocessor
finalizeGroup, finalizeRecord, finalizeSegment, finalizeStream, handleConstant, initializeRecord, initializeStream
-
Methods inherited from class org.beanio.internal.compiler.ProcessorSupport
getParent, handleComponent, process
-
-
-
-
Constructor Detail
-
XmlPreprocessor
public XmlPreprocessor(StreamConfig stream)
Constructs a newXmlPreprocessor.- Parameters:
stream- the stream configuration to pre-process
-
-
Method Detail
-
initializeGroup
protected void initializeGroup(GroupConfig group)
Description copied from class:PreprocessorInitializes a group configuration before its children have been processed.- Overrides:
initializeGroupin classPreprocessor- Parameters:
group- the group configuration to process
-
initializeSegment
protected void initializeSegment(SegmentConfig segment)
Description copied from class:PreprocessorInitializes a segment configuration before its children have been processed.- Overrides:
initializeSegmentin classPreprocessor- Parameters:
segment- the segment configuration to process
-
handleField
protected void handleField(FieldConfig field)
Description copied from class:PreprocessorProcesses a field configuration.- Overrides:
handleFieldin classPreprocessor- Parameters:
field- the field configuration to process
-
validateRecordIdentifyingCriteria
protected void validateRecordIdentifyingCriteria(FieldConfig field)
Description copied from class:PreprocessorThis method validates a record identifying field has a literal or regular expression configured for identifying a record.- Overrides:
validateRecordIdentifyingCriteriain classPreprocessor- Parameters:
field- the record identifying field configuration to validate
-
-