BeanIO 1.2.3

org.beanio.config
Class BeanIOConfig

java.lang.Object
  extended by org.beanio.config.BeanIOConfig
All Implemented Interfaces:
Cloneable

public class BeanIOConfig
extends Object
implements Cloneable

Stores BeanIO stream mapping configuration settings.

Since:
1.0
Author:
Kevin Seim

Constructor Summary
BeanIOConfig()
          Constructs a new BeanIOConfig.
 
Method Summary
 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()
           
 String getSource()
          Returns the source of this configuration.
 List<StreamConfig> getStreamList()
          Returns the list of stream mappings for this configuration.
 List<TypeHandlerConfig> getTypeHandlerList()
          Returns the list of custom type handlers for this configuration.
 void setSource(String source)
          Sets the source of this configuration, which if present, may be included in error messages.
 void setTypeHandlerList(List<TypeHandlerConfig> list)
          Sets the list of globally declared custom type handlers for this configuration.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanIOConfig

public BeanIOConfig()
Constructs a new BeanIOConfig.

Method Detail

getSource

public String getSource()
Returns the source of this configuration. May be null if unknown or not specified.

Returns:
the configuration source

setSource

public void setSource(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 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 List<TypeHandlerConfig> getTypeHandlerList()
Returns the list of custom type handlers for this configuration.

Returns:
list of custom type handlers

setTypeHandlerList

public void setTypeHandlerList(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 class Object

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim