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
ConfigurationPreprocessor
for 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 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
initializeSegment(SegmentConfig segment)
Initializes a segment 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.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:Preprocessor
Initializes a group configuration before its children have been processed.- Overrides:
initializeGroup
in classPreprocessor
- Parameters:
group
- the group configuration to process
-
initializeSegment
protected void initializeSegment(SegmentConfig segment)
Description copied from class:Preprocessor
Initializes a segment configuration before its children have been processed.- Overrides:
initializeSegment
in classPreprocessor
- Parameters:
segment
- the segment configuration to process
-
handleField
protected void handleField(FieldConfig field)
Description copied from class:Preprocessor
Processes a field configuration.- Overrides:
handleField
in classPreprocessor
- Parameters:
field
- the field configuration to process
-
validateRecordIdentifyingCriteria
protected void validateRecordIdentifyingCriteria(FieldConfig field)
Description copied from class:Preprocessor
This method validates a record identifying field has a literal or regular expression configured for identifying a record.- Overrides:
validateRecordIdentifyingCriteria
in classPreprocessor
- Parameters:
field
- the record identifying field configuration to validate
-
-