Class AbstractDouiDataType

    • Constructor Detail

      • AbstractDouiDataType

        protected AbstractDouiDataType()
        Creates a doui data type. The converter is created by calling createConverter().
        Since:
        4.0.10
    • Method Detail

      • getId

        public abstract String getId()
        Description copied from interface: IDouiDataType
        Returns the id for this data type.
        Specified by:
        getId in interface IDouiDataType
        Returns:
        the id for this data type.
      • getDefaultInputControlType

        public String getDefaultInputControlType()
        Description copied from interface: IDouiDataType
        Returns the default input control type for this data type.
        Specified by:
        getDefaultInputControlType in interface IDouiDataType
        Returns:
        the default input control type for this data type, or null if this data type has no default input control type.
      • getDefaultFilterControlType

        public String getDefaultFilterControlType()
        Description copied from interface: IDouiDataType
        Returns the default filter control type for this data type. Implementors are encouraged to use the same value of IDouiDataType.getDefaultInputControlType() when no special control is required for using inside filters.
        Specified by:
        getDefaultFilterControlType in interface IDouiDataType
        Returns:
        the default filter control type for this data type, or null if this data type has no default input control type.
      • getDefaultViewControlType

        public String getDefaultViewControlType()
        Description copied from interface: IDouiDataType
        Returns the default control type for viewing this data type's values.
        Specified by:
        getDefaultViewControlType in interface IDouiDataType
        Returns:
        the default control type for viewing this data type, or null if this data type has no default view control type.
      • createConverter

        protected IConverter createConverter()
        Creates the converter instance that will be used by this data type.
        Returns:
        the converter instance.
        Since:
        4.0.10
      • getConverter

        public IConverter getConverter()
        Description copied from interface: IDouiDataType
        Returns the converter for data of this type.
        Specified by:
        getConverter in interface IDouiDataType
        Returns:
        the converter for data of this type.
      • getValueClass

        public Class<?> getValueClass()
        Description copied from interface: IDouiDataType
        Returns the value class for data of this type.
        Specified by:
        getValueClass in interface IDouiDataType
        Returns:
        the value class for data of this type.
      • getDefinitionLocale

        public Locale getDefinitionLocale()
        Returns the locale to be used to parse the values of this data type in a definition xml file.

        This generic implementation returns Locale.US.

        Specified by:
        getDefinitionLocale in interface IDouiDataType
        Returns:
        the locale for definition values.
      • getDefinitionPattern

        public String getDefinitionPattern()
        Returns the pattern to be used to parse the values of this data type in a definition xml file.

        This generic implementation returns null.

        Specified by:
        getDefinitionPattern in interface IDouiDataType
        Returns:
        the pattern for definition values.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isComplexDataType

        public boolean isComplexDataType()
        Description copied from interface: IDouiDataType
        Returns true if when value is a complex data type. The xml representation of the value when not null should have attributes or sub-nodes.
        Specified by:
        isComplexDataType in interface IDouiDataType
        Returns: