Class 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
    • 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, or null 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypeHandlerConfig

        public TypeHandlerConfig()
    • 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, 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​(java.lang.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)