lumis.doui.datatype
Class AbstractDouiDataType

Package class diagram package AbstractDouiDataType
java.lang.Object
  extended by lumis.doui.datatype.AbstractDouiDataType
All Implemented Interfaces:
IDouiDataType
Direct Known Subclasses:
AbstractSourceFieldDataType

@StableMinor(version="5.5",
             sinceVersion="4.0")
public abstract class AbstractDouiDataType
extends Object
implements IDouiDataType

Base implementation for the IDouiDataType interface.

Since:
4.0.10

Constructor Summary
protected AbstractDouiDataType()
          Creates a doui data type.
 
Method Summary
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 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()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.