|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.internal.compiler.ProcessorSupport org.beanio.internal.compiler.ParserFactorySupport org.beanio.internal.compiler.xml.XmlParserFactory
public class XmlParserFactory
A ParserFactory
for the XML stream format.
Constructor Summary | |
---|---|
XmlParserFactory()
Constructs a new XmlParserFactory. |
Method Summary | |
---|---|
FieldFormat |
createFieldFormat(FieldConfig config,
Class<?> type)
Creates a format specific FieldFormat . |
protected Preprocessor |
createPreprocessor(StreamConfig config)
Creates a stream configuration pre-processor. |
RecordFormat |
createRecordFormat(RecordConfig config)
Creates a format specific RecordFormat . |
Stream |
createStream(StreamConfig config)
Creates a new stream definition based on a stream configuration. |
StreamFormat |
createStreamFormat(StreamConfig config)
Creates a format specific StreamFormat . |
protected void |
finalizeGroupMain(GroupConfig config)
|
protected void |
finalizeRecord(RecordConfig config,
Record record)
Invoked by ParserFactorySupport.finalizeRecord(RecordConfig) to allow subclasses to perform
further finalization of the created Record . |
protected void |
finalizeRecordMain(RecordConfig config)
|
protected void |
finalizeSegment(SegmentConfig config,
Segment segment)
Invoked by ParserFactorySupport.finalizeSegmentMain(SegmentConfig) to allow subclasses to perform
further finalization of the created Segment . |
protected void |
finalizeSegmentMain(SegmentConfig config)
Called by ParserFactorySupport.finalizeSegment(SegmentConfig) to finalize the segment component. |
protected RecordParserFactory |
getDefaultRecordParserFactory()
Returns the default RecordParserFactory . |
protected void |
initializeGroupMain(GroupConfig config,
Property bean)
|
protected void |
initializeRecordMain(RecordConfig config,
Property bean)
|
protected void |
initializeSegmentMain(SegmentConfig config,
Property property)
Called by ParserFactorySupport.initializeSegment(SegmentConfig) to initialize the segment. |
protected boolean |
isSegmentRequired(SegmentConfig config)
|
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 |
---|
public XmlParserFactory()
Method Detail |
---|
protected Preprocessor createPreprocessor(StreamConfig config)
ParserFactorySupport
createPreprocessor
in class ParserFactorySupport
config
- the stream configuration to pre-process
Preprocessor
public Stream createStream(StreamConfig config) throws BeanIOConfigurationException
ParserFactorySupport
createStream
in interface ParserFactory
createStream
in class ParserFactorySupport
config
- the stream configuration
Stream
BeanIOConfigurationException
- if the configuration is invalidprotected void initializeGroupMain(GroupConfig config, Property bean)
initializeGroupMain
in class ParserFactorySupport
protected void finalizeGroupMain(GroupConfig config) throws BeanIOConfigurationException
finalizeGroupMain
in class ParserFactorySupport
BeanIOConfigurationException
protected void initializeRecordMain(RecordConfig config, Property bean)
initializeRecordMain
in class ParserFactorySupport
protected void finalizeRecordMain(RecordConfig config) throws BeanIOConfigurationException
finalizeRecordMain
in class ParserFactorySupport
BeanIOConfigurationException
protected void finalizeRecord(RecordConfig config, Record record)
ParserFactorySupport
ParserFactorySupport.finalizeRecord(RecordConfig)
to allow subclasses to perform
further finalization of the created Record
.
finalizeRecord
in class ParserFactorySupport
config
- the record configurationrecord
- the Record
being finalizedprotected boolean isSegmentRequired(SegmentConfig config)
isSegmentRequired
in class ParserFactorySupport
protected void initializeSegmentMain(SegmentConfig config, Property property)
ParserFactorySupport
ParserFactorySupport.initializeSegment(SegmentConfig)
to initialize the segment.
initializeSegmentMain
in class ParserFactorySupport
config
- the segment configurationproperty
- the property bound to the segment, or null if no property was boundprotected void finalizeSegmentMain(SegmentConfig config) throws BeanIOConfigurationException
ParserFactorySupport
ParserFactorySupport.finalizeSegment(SegmentConfig)
to finalize the segment component.
finalizeSegmentMain
in class ParserFactorySupport
config
- the segment configuration
BeanIOConfigurationException
protected void finalizeSegment(SegmentConfig config, Segment segment)
ParserFactorySupport
ParserFactorySupport.finalizeSegmentMain(SegmentConfig)
to allow subclasses to perform
further finalization of the created Segment
.
finalizeSegment
in class ParserFactorySupport
config
- the segment configurationsegment
- the new Segment
public StreamFormat createStreamFormat(StreamConfig config)
ParserFactorySupport
StreamFormat
.
createStreamFormat
in class ParserFactorySupport
config
- the stream configuration
StreamFormat
public RecordFormat createRecordFormat(RecordConfig config)
ParserFactorySupport
RecordFormat
.
createRecordFormat
in class ParserFactorySupport
config
- the record configuration
RecordFormat
public FieldFormat createFieldFormat(FieldConfig config, Class<?> type)
ParserFactorySupport
FieldFormat
.
createFieldFormat
in class ParserFactorySupport
config
- the field configurationtype
- the property type, or null if not bound to a property
FieldFormat
protected RecordParserFactory getDefaultRecordParserFactory()
ParserFactorySupport
RecordParserFactory
.
getDefaultRecordParserFactory
in class ParserFactorySupport
RecordParserFactory
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |