Class SimplePropertyConfig

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<ComponentConfig>, Replicateable
    Direct Known Subclasses:
    ConstantConfig, FieldConfig

    public abstract class SimplePropertyConfig
    extends PropertyConfig
    A base class for configuration components that can be bound to "simple attributes" of a bean object. A simple attribute is one that does not have any child properties itself and can be derived using a TypeHandler.
    Since:
    2.0
    • Constructor Detail

      • SimplePropertyConfig

        public SimplePropertyConfig()
    • Method Detail

      • getTypeHandler

        public java.lang.String getTypeHandler()
        Returns the name of the custom type handler used for type conversion by this component, or null if the default type handler is sufficient.
        Returns:
        the name of a custom type handler
      • setTypeHandler

        public void setTypeHandler​(java.lang.String handler)
        Sets the name of the custom type handler to use for type conversion by this component. Set to null if the default type handler is sufficient.
        Parameters:
        handler - the name of a custom type handler
      • getTypeHandlerInstance

        public TypeHandler getTypeHandlerInstance()
        Returns the type handler.
        Returns:
        the TypeHandler
      • setTypeHandlerInstance

        public void setTypeHandlerInstance​(TypeHandler typeHandlerInstance)
        Sets the type handler.
        Parameters:
        typeHandlerInstance - the TypeHandler
      • getFormat

        public java.lang.String getFormat()
        Returns the pattern used by date and number type handlers to parse and format the property value.
        Returns:
        the date or number format pattern
        See Also:
        SimpleDateFormat, DecimalFormat
      • setFormat

        public void setFormat​(java.lang.String format)
        Sets the pattern used by date and number type handlers to parse and format the property value.
        Parameters:
        format - the date or number format pattern
        See Also:
        SimpleDateFormat, DecimalFormat