public class XmlParserFactory extends ParserFactorySupport
ParserFactory
for the XML stream format.popProperty
Constructor and Description |
---|
XmlParserFactory()
Constructs a new XmlParserFactory.
|
createAggregation, createProperty, createRecordAggregation, createRecordParserFactory, finalizeGroup, finalizeGroup, finalizeGroupIteration, finalizeRecord, finalizeRecordIteration, finalizeSegment, finalizeSegmentIteration, finalizeStream, getBeanClass, getField, handleConstant, handleField, initializeGroup, initializeGroupIteration, initializeRecord, initializeRecordIteration, initializeSegment, initializeSegmentIteration, initializeStream, isBound, isReadEnabled, isWriteEnabled, parseDefaultValue, popParser, popProperty, pushParser, pushProperty, reflectAggregationType, reflectCollectionType, reflectPropertyType, reflectRecordAggregationType, setClassLoader, setTypeHandlerFactory, updateConstructor
getParent, handleComponent, process
protected Preprocessor createPreprocessor(StreamConfig config)
ParserFactorySupport
createPreprocessor
in class ParserFactorySupport
config
- the stream configuration to pre-processPreprocessor
public Stream createStream(StreamConfig config) throws BeanIOConfigurationException
ParserFactorySupport
createStream
in interface ParserFactory
createStream
in class ParserFactorySupport
config
- the stream configurationStream
BeanIOConfigurationException
- if the configuration is invalidprotected void initializeGroupMain(GroupConfig config, Property bean)
initializeGroupMain
in class ParserFactorySupport
protected Property finalizeGroupMain(GroupConfig config) throws BeanIOConfigurationException
finalizeGroupMain
in class ParserFactorySupport
BeanIOConfigurationException
protected void initializeRecordMain(RecordConfig config, Property bean)
initializeRecordMain
in class ParserFactorySupport
protected Property 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 Property finalizeSegmentMain(SegmentConfig config) throws BeanIOConfigurationException
ParserFactorySupport
ParserFactorySupport.finalizeSegment(SegmentConfig)
to finalize the segment component.finalizeSegmentMain
in class ParserFactorySupport
config
- the segment configurationBeanIOConfigurationException
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 configurationStreamFormat
public RecordFormat createRecordFormat(RecordConfig config)
ParserFactorySupport
RecordFormat
.createRecordFormat
in class ParserFactorySupport
config
- the record configurationRecordFormat
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 propertyFieldFormat
protected RecordParserFactory getDefaultRecordParserFactory()
ParserFactorySupport
RecordParserFactory
.getDefaultRecordParserFactory
in class ParserFactorySupport
RecordParserFactory