Package org.beanio.internal.config
Class BeanIOConfig
- java.lang.Object
-
- org.beanio.internal.config.BeanIOConfig
-
- All Implemented Interfaces:
java.lang.Cloneable
public class BeanIOConfig extends java.lang.Object implements java.lang.Cloneable
Stores BeanIO stream mapping configuration settings.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description BeanIOConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStream(StreamConfig stream)
Adds a stream mapping configuration to this configuration.void
addTypeHandler(TypeHandlerConfig handler)
Adds a custom type handler to this configuration.BeanIOConfig
clone()
java.lang.String
getSource()
Returns the source of this configuration.java.util.List<StreamConfig>
getStreamList()
Returns the list of stream mappings for this configuration.java.util.List<TypeHandlerConfig>
getTypeHandlerList()
Returns the list of custom type handlers for this configuration.void
setSource(java.lang.String source)
Sets the source of this configuration, which if present, may be included in error messages.void
setTypeHandlerList(java.util.List<TypeHandlerConfig> list)
Sets the list of globally declared custom type handlers for this configuration.
-
-
-
Method Detail
-
getSource
public java.lang.String getSource()
Returns the source of this configuration. May benull
if unknown or not specified.- Returns:
- the configuration source
-
setSource
public void setSource(java.lang.String source)
Sets the source of this configuration, which if present, may be included in error messages.- Parameters:
source
- the configuration source
-
addStream
public void addStream(StreamConfig stream)
Adds a stream mapping configuration to this configuration.- Parameters:
stream
- the stream mapping configuration
-
getStreamList
public java.util.List<StreamConfig> getStreamList()
Returns the list of stream mappings for this configuration.- Returns:
- list of stream mapping configurations
-
addTypeHandler
public void addTypeHandler(TypeHandlerConfig handler)
Adds a custom type handler to this configuration.- Parameters:
handler
- the type handler configuration
-
getTypeHandlerList
public java.util.List<TypeHandlerConfig> getTypeHandlerList()
Returns the list of custom type handlers for this configuration.- Returns:
- list of custom type handlers
-
setTypeHandlerList
public void setTypeHandlerList(java.util.List<TypeHandlerConfig> list)
Sets the list of globally declared custom type handlers for this configuration.- Parameters:
list
- the list of custom type handlers- Since:
- 1.2.1
-
clone
public BeanIOConfig clone()
- Overrides:
clone
in classjava.lang.Object
-
-