|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.config.StreamDefinitionFactory org.beanio.config.xml.XmlStreamDefinitionFactory
public class XmlStreamDefinitionFactory
A XmlStreamDefinitionFactory is used to create stream definitions for XML formatted streams from a BeanIO mapping configuration.
Constructor Summary | |
---|---|
XmlStreamDefinitionFactory()
|
Method Summary | |
---|---|
protected void |
compileRecordDefinition(GroupDefinition group,
RecordConfig config,
RecordDefinition recordDefinition)
Compiles a record definition from its configuration. |
TypeHandlerFactory |
getDefaultTypeHandlerFactory()
Returns the type handler factory for this stream format, thus allowing a stream format to override default type handlers. |
protected boolean |
isOptionalBeanEnabled()
Returns whether this stream format allows beans with zero minimum occurrences. |
protected boolean |
isOptionalFieldEnabled()
Returns whether this stream format allows fields with zero minimum occurrences. |
protected BeanDefinition |
newBeanDefinition(BeanConfig bean)
Creates a new BeanDefinition. |
protected FieldDefinition |
newFieldDefinition(FieldConfig field)
Creates a new FieldDefinition. |
protected GroupDefinition |
newGroupDefinition(GroupConfig group)
Creates a new GroupDefinition. |
protected RecordDefinition |
newRecordDefinition(RecordConfig record)
Creates a new RecordDefinition. |
protected RecordReaderFactory |
newRecordReaderFactory()
Creates a default record reader factory. |
protected RecordWriterFactory |
newRecordWriterFactory()
Creates a default record writer factory |
protected StreamDefinition |
newStreamDefinition(StreamConfig stream)
Creates a new StreamDefinition. |
protected void |
updateBeanDefinition(BeanConfig beanConfig,
BeanDefinition beanDefinition)
This method is called by compileBeanDefinition to allow the configuration of format specific bean configuration settings. |
protected void |
updateFieldDefinition(FieldConfig fieldConfig,
FieldDefinition fieldDefinition)
This method is called by compileFieldDefinitions to allow the configuration of format specific field configuration settings. |
protected void |
updateGroupDefinition(GroupDefinition parent,
GroupConfig config,
GroupDefinition definition)
This method is called by compileGroupDefinition to allow the configuration of stream specific group configuration settings. |
protected void |
validateRecordIdentifyingCriteria(FieldDefinition fieldDefinition)
An XML record identifying field of type element or attribute does not need a literal or regular expression configured to identify the record (since the presence of the named field may sufficiently identify the record). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlStreamDefinitionFactory()
Method Detail |
---|
public TypeHandlerFactory getDefaultTypeHandlerFactory()
StreamDefinitionFactory
getDefaultTypeHandlerFactory
in class StreamDefinitionFactory
protected boolean isOptionalFieldEnabled()
StreamDefinitionFactory
isOptionalFieldEnabled
in class StreamDefinitionFactory
protected boolean isOptionalBeanEnabled()
StreamDefinitionFactory
isOptionalBeanEnabled
in class StreamDefinitionFactory
protected void updateGroupDefinition(GroupDefinition parent, GroupConfig config, GroupDefinition definition)
StreamDefinitionFactory
updateGroupDefinition
in class StreamDefinitionFactory
parent
- the parent group definitionconfig
- the group configurationdefinition
- the group definitionprotected void compileRecordDefinition(GroupDefinition group, RecordConfig config, RecordDefinition recordDefinition)
StreamDefinitionFactory
compileRecordDefinition
in class StreamDefinitionFactory
config
- the record configurationrecordDefinition
- the record definitionprotected void updateBeanDefinition(BeanConfig beanConfig, BeanDefinition beanDefinition)
StreamDefinitionFactory
updateBeanDefinition
in class StreamDefinitionFactory
beanConfig
- the bean configurationbeanDefinition
- the bean definitionprotected void updateFieldDefinition(FieldConfig fieldConfig, FieldDefinition fieldDefinition)
StreamDefinitionFactory
updateFieldDefinition
in class StreamDefinitionFactory
fieldConfig
- the field configurationfieldDefinition
- the field definitionprotected void validateRecordIdentifyingCriteria(FieldDefinition fieldDefinition)
validateRecordIdentifyingCriteria
in class StreamDefinitionFactory
fieldDefinition
- the record identifying field definition to validateprotected GroupDefinition newGroupDefinition(GroupConfig group)
StreamDefinitionFactory
newGroupDefinition
in class StreamDefinitionFactory
group
- the group configuration
protected FieldDefinition newFieldDefinition(FieldConfig field)
StreamDefinitionFactory
newFieldDefinition
in class StreamDefinitionFactory
field
- the field configuration
protected BeanDefinition newBeanDefinition(BeanConfig bean)
StreamDefinitionFactory
newBeanDefinition
in class StreamDefinitionFactory
bean
- the bean configuration
protected RecordDefinition newRecordDefinition(RecordConfig record)
StreamDefinitionFactory
newRecordDefinition
in class StreamDefinitionFactory
record
- the record configuration
protected StreamDefinition newStreamDefinition(StreamConfig stream)
StreamDefinitionFactory
newStreamDefinition
in class StreamDefinitionFactory
stream
- the stream configuration
protected RecordReaderFactory newRecordReaderFactory()
StreamDefinitionFactory
newRecordReaderFactory
in class StreamDefinitionFactory
protected RecordWriterFactory newRecordWriterFactory()
StreamDefinitionFactory
newRecordWriterFactory
in class StreamDefinitionFactory
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |