BeanIO 2.0.4

org.beanio.internal.compiler.xml
Class XmlPreprocessor

java.lang.Object
  extended by org.beanio.internal.compiler.ProcessorSupport
      extended by org.beanio.internal.compiler.Preprocessor
          extended by org.beanio.internal.compiler.xml.XmlPreprocessor

public class XmlPreprocessor
extends Preprocessor

Configuration Preprocessor for an XML stream format.

Since:
2.0
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.internal.compiler.Preprocessor
propertyRoot, stream
 
Constructor Summary
XmlPreprocessor(StreamConfig stream)
          Constructs a new XmlPreprocessor.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlPreprocessor

public XmlPreprocessor(StreamConfig stream)
Constructs a new XmlPreprocessor.

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 class Preprocessor
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 class Preprocessor
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 class Preprocessor
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 class Preprocessor
Parameters:
field - the record identifying field configuration to validate

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim