Package lumis.doui.datatype
Class AbstractDouiDataType
- java.lang.Object
-
- lumis.doui.datatype.AbstractDouiDataType
-
- All Implemented Interfaces:
IDouiDataType
- Direct Known Subclasses:
AbstractSourceFieldDataType
@StableMinor(version="14.0", sinceVersion="4.0") public abstract class AbstractDouiDataType extends Object implements IDouiDataType
Base implementation for theIDouiDataType
interface.- Since:
- 4.0.10
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDouiDataType()
Creates a doui data type.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected IConverter
createConverter()
Creates the converter instance that will be used by this data type.boolean
equals(Object obj)
IConverter
getConverter()
Returns the converter for data of this type.String
getDefaultFilterControlType()
Returns the default filter control type for this data type.String
getDefaultInputControlType()
Returns the default input control type for this data type.String
getDefaultViewControlType()
Returns the default control type for viewing this data type's values.Locale
getDefinitionLocale()
Returns the locale to be used to parse the values of this data type in a definition xml file.String
getDefinitionPattern()
Returns the pattern to be used to parse the values of this data type in a definition xml file.abstract String
getId()
Returns the id for this data type.Class<?>
getValueClass()
Returns the value class for data of this type.int
hashCode()
boolean
isComplexDataType()
Returns true if when value is a complex data type.String
toString()
-
-
-
Constructor Detail
-
AbstractDouiDataType
protected AbstractDouiDataType()
Creates a doui data type. The converter is created by callingcreateConverter()
.- 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 interfaceIDouiDataType
- 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 interfaceIDouiDataType
- 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 ofIDouiDataType.getDefaultInputControlType()
when no special control is required for using inside filters.- Specified by:
getDefaultFilterControlType
in interfaceIDouiDataType
- 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 interfaceIDouiDataType
- 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 interfaceIDouiDataType
- 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 interfaceIDouiDataType
- 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 interfaceIDouiDataType
- 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 interfaceIDouiDataType
- Returns:
- the pattern for definition values.
-
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 interfaceIDouiDataType
- Returns:
-
-