Package org.beanio.internal.config
Class TypeHandlerConfig
- java.lang.Object
-
- org.beanio.internal.config.BeanConfig<TypeHandler>
-
- org.beanio.internal.config.TypeHandlerConfig
-
public class TypeHandlerConfig extends BeanConfig<TypeHandler>
Stores configuration settings for a custom type handler. Type handlers are used to convert field text to values and back.- Since:
- 1.0
- See Also:
TypeHandler
-
-
Constructor Summary
Constructors Constructor Description TypeHandlerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFormat()
Returns the stream format to register this type handler for, ornull
if the type handler is used for all formats.java.lang.String
getName()
Returns the name of the type handler.java.lang.String
getType()
Returns the class name to register this type handler under.void
setFormat(java.lang.String format)
Sets the stream format to register this type handler for.void
setName(java.lang.String name)
Sets the name of the type handler.void
setType(java.lang.String type)
Sets the class name to register this type handler under.-
Methods inherited from class org.beanio.internal.config.BeanConfig
getClassName, getInstance, getProperties, setClassName, setInstance, setProperties
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the type handler.- Returns:
- the type handler name
-
setName
public void setName(java.lang.String name)
Sets the name of the type handler.- Parameters:
name
- the type handler name
-
getType
public java.lang.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(java.lang.String type)
Sets the class name to register this type handler under.- Parameters:
type
- the class name to register this type handler
-
getFormat
public java.lang.String getFormat()
Returns the stream format to register this type handler for, ornull
if the type handler is used for all formats.- Returns:
- the stream format (xml, csv, delimited, or fixedlength) or
null
-
setFormat
public void setFormat(java.lang.String format)
Sets the stream format to register this type handler for. By default, the stream format isnull
and the type handler is used for all formats.- Parameters:
format
- the stream format (xml, csv, delimited, or fixedlength)
-
-