BeanIO 1.2.3

org.beanio.config
Class TypeHandlerConfig

java.lang.Object
  extended by org.beanio.config.Bean
      extended by org.beanio.config.TypeHandlerConfig

public class TypeHandlerConfig
extends Bean

Stores configuration settings for a custom type handler. Type handlers are used to convert field text to values and back.

Since:
1.0
Author:
Kevin Seim
See Also:
TypeHandler

Constructor Summary
TypeHandlerConfig()
           
 
Method Summary
 String getFormat()
          Returns the stream format to register this type handler for, or null if the type handler is used for all formats.
 String getName()
          Returns the name of the type handler.
 String getType()
          Returns the class name to register this type handler under.
 void setFormat(String format)
          Sets the stream format to register this type handler for.
 void setName(String name)
          Sets the name of the type handler.
 void setType(String type)
          Sets the class name to register this type handler under.
 
Methods inherited from class org.beanio.config.Bean
getClassName, getProperties, setClassName, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeHandlerConfig

public TypeHandlerConfig()
Method Detail

getName

public String getName()
Returns the name of the type handler.

Returns:
the type handler name

setName

public void setName(String name)
Sets the name of the type handler.

Parameters:
name - the type handler name

getType

public String getType()
Returns the class name to register this type handler under.

Returns:
the class name to register this type handler under

setType

public void setType(String type)
Sets the class name to register this type handler under.

Parameters:
type - the class name to register this type handler

getFormat

public String getFormat()
Returns the stream format to register this type handler for, or null if the type handler is used for all formats.

Returns:
the stream format (xml, csv, delimited, or fixedlength) or null

setFormat

public void setFormat(String format)
Sets the stream format to register this type handler for. By default, the stream format is null and the type handler is used for all formats.

Parameters:
format - the stream format (xml, csv, delimited, or fixedlength)

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim