|
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.StreamConfig
public class StreamConfig
Stores configuration settings for a stream.
Field Summary | |
---|---|
static String |
READ_ONLY_MODE
Stream configuration supports reading only |
static String |
READ_WRITE_MODE
Stream configuration supports reading and writing |
static String |
WRITE_ONLY_MODE
Stream configuration supports writing only |
Constructor Summary | |
---|---|
StreamConfig()
Constructs a new StreamConfig. |
Method Summary | |
---|---|
void |
addHandler(TypeHandlerConfig handler)
Adds a custom type handler to this stream. |
void |
addNode(NodeConfig node)
Adds a record or group to this stream's root group. |
String |
getFormat()
Returns the format of this stream. |
List<TypeHandlerConfig> |
getHandlerList()
Returns a list of customized type handlers configured for this stream. |
String |
getMode()
Returns the allowed mode(s) of operation for this stream configuration. |
String |
getName()
Returns the name of this stream. |
List<NodeConfig> |
getNodeList()
Returns the list of child nodes (records and groups) for this stream. |
Bean |
getReaderFactory()
Returns the record reader factory configuration bean. |
String |
getResourceBundle()
Returns the path name of the resource bundle containing customized error messages for this stream. |
GroupConfig |
getRootGroupConfig()
Returns the root group. |
Bean |
getWriterFactory()
Returns the record writer factory configuration bean. |
boolean |
isOrdered()
Returns whether stream components (records and groups) are ordered. |
void |
setFormat(String format)
Sets the format of this stream. |
void |
setMaxOccurs(int maxOccurs)
Sets the maximum occurrences of this stream. |
void |
setMinOccurs(int minOccurs)
Sets the minimum occurrences of this stream. |
void |
setMode(String mode)
Sets the allowed mode(s) of operation for this stream configuration. |
void |
setName(String name)
Sets the name of this stream. |
void |
setNodeList(List<NodeConfig> nodeList)
Sets the list of child nodes for this stream. |
void |
setOrdered(boolean ordered)
Sets whether stream components (records and groups) are ordered. |
void |
setReaderFactory(Bean readerFactory)
Sets the record reader factory configuration bean. |
void |
setResourceBundle(String resourceBundle)
Sets the path name of the resource bundle containing customized error messages for this stream. |
void |
setWriterFactory(Bean writerFactory)
Sets the record writer factory configuration bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String READ_WRITE_MODE
public static final String READ_ONLY_MODE
public static final String WRITE_ONLY_MODE
Constructor Detail |
---|
public StreamConfig()
Method Detail |
---|
public String getName()
public void setName(String name)
name
- the stream namepublic String getFormat()
public void setFormat(String format)
format
- the stream formatpublic String getMode()
READ_WRITE_MODE
if reading and writing from a stream is allowed,READ_ONLY_MODE
if only reading is allowed,WRITE_ONLY_MODE
if only writing is allowed, public void setMode(String mode)
mode
- READ_WRITE_MODE
if reading and writing from a stream is allowed,READ_ONLY_MODE
if only reading is allowed,WRITE_ONLY_MODE
if only writing is allowedpublic boolean isOrdered()
public void setOrdered(boolean ordered)
ordered
- true if stream components are orderedpublic String getResourceBundle()
public void setResourceBundle(String resourceBundle)
resourceBundle
- the resource bundle namepublic void addHandler(TypeHandlerConfig handler)
handler
- the type handler to addpublic List<TypeHandlerConfig> getHandlerList()
public GroupConfig getRootGroupConfig()
public void addNode(NodeConfig node)
node
- the node to addpublic void setNodeList(List<NodeConfig> nodeList)
nodeList
- the list of child nodespublic List<NodeConfig> getNodeList()
public Bean getReaderFactory()
public void setReaderFactory(Bean readerFactory)
readerFactory
- the record reader factory configuration beanpublic Bean getWriterFactory()
public void setWriterFactory(Bean writerFactory)
writerFactory
- the record writer factory configuration beanpublic void setMinOccurs(int minOccurs)
minOccurs
- the minimum occurrencespublic void setMaxOccurs(int maxOccurs)
maxOccurs
- ths maximum occurrences
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |