Class 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 Detail

      • BeanIOConfig

        public BeanIOConfig()
    • Method Detail

      • getSource

        public java.lang.String getSource()
        Returns the source of this configuration. May be null 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 class java.lang.Object