|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 StreamDefinitionFactoryprotected boolean isOptionalFieldEnabled()
StreamDefinitionFactory
isOptionalFieldEnabled in class StreamDefinitionFactoryprotected boolean isOptionalBeanEnabled()
StreamDefinitionFactory
isOptionalBeanEnabled in class StreamDefinitionFactory
protected void updateGroupDefinition(GroupDefinition parent,
GroupConfig config,
GroupDefinition definition)
StreamDefinitionFactory
updateGroupDefinition in class StreamDefinitionFactoryparent - the parent group definitionconfig - the group configurationdefinition - the group definition
protected void compileRecordDefinition(GroupDefinition group,
RecordConfig config,
RecordDefinition recordDefinition)
StreamDefinitionFactory
compileRecordDefinition in class StreamDefinitionFactoryconfig - the record configurationrecordDefinition - the record definition
protected void updateBeanDefinition(BeanConfig beanConfig,
BeanDefinition beanDefinition)
StreamDefinitionFactory
updateBeanDefinition in class StreamDefinitionFactorybeanConfig - the bean configurationbeanDefinition - the bean definition
protected void updateFieldDefinition(FieldConfig fieldConfig,
FieldDefinition fieldDefinition)
StreamDefinitionFactory
updateFieldDefinition in class StreamDefinitionFactoryfieldConfig - the field configurationfieldDefinition - the field definitionprotected void validateRecordIdentifyingCriteria(FieldDefinition fieldDefinition)
validateRecordIdentifyingCriteria in class StreamDefinitionFactoryfieldDefinition - the record identifying field definition to validateprotected GroupDefinition newGroupDefinition(GroupConfig group)
StreamDefinitionFactory
newGroupDefinition in class StreamDefinitionFactorygroup - the group configuration
protected FieldDefinition newFieldDefinition(FieldConfig field)
StreamDefinitionFactory
newFieldDefinition in class StreamDefinitionFactoryfield - the field configuration
protected BeanDefinition newBeanDefinition(BeanConfig bean)
StreamDefinitionFactory
newBeanDefinition in class StreamDefinitionFactorybean - the bean configuration
protected RecordDefinition newRecordDefinition(RecordConfig record)
StreamDefinitionFactory
newRecordDefinition in class StreamDefinitionFactoryrecord - the record configuration
protected StreamDefinition newStreamDefinition(StreamConfig stream)
StreamDefinitionFactory
newStreamDefinition in class StreamDefinitionFactorystream - the stream configuration
protected RecordReaderFactory newRecordReaderFactory()
StreamDefinitionFactory
newRecordReaderFactory in class StreamDefinitionFactoryprotected 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 | ||||||||