Class ValueFormatDefinition
- java.lang.Object
-
- com.aquima.interactions.project.impl.ValueFormatDefinition
-
- All Implemented Interfaces:
IValueFormatDefinition
,Serializable
public class ValueFormatDefinition extends Object implements IValueFormatDefinition
This class holds a single value format definition for the application configuration.- Since:
- 8.0
- Author:
- O. Kerpershoek
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValueFormatDefinition(IValueFormatDS datasource)
Constructs a value format definition based on a datasource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLanguageCode()
This method returns the language code of the language that should be used for language specific symbols.String
getName()
This method returns the name of the value format definition.String
getPattern()
This method returns the actual value format pattern that should be used by the value format.DataType
getType()
This method returns the data type the value format was defined for.
-
-
-
Constructor Detail
-
ValueFormatDefinition
public ValueFormatDefinition(IValueFormatDS datasource)
Constructs a value format definition based on a datasource.- Parameters:
datasource
- The datasource, may not be null.- Throws:
InitializationException
- Is thrown when the datasource provided invalid data to construct the definition.
-
-
Method Detail
-
getName
public String getName()
This method returns the name of the value format definition. If this name is equal to a value format defined in Studio, this value format definition will replace the definition from studio.- Specified by:
getName
in interfaceIValueFormatDefinition
- Returns:
- The name of the value format definition.
-
getType
public DataType getType()
This method returns the data type the value format was defined for.- Specified by:
getType
in interfaceIValueFormatDefinition
- Returns:
- The data type the value format was defined for.
-
getLanguageCode
public String getLanguageCode()
This method returns the language code of the language that should be used for language specific symbols. Not all value formats do need language specific symbols, so the language code might be null for certain patterns.- Specified by:
getLanguageCode
in interfaceIValueFormatDefinition
- Returns:
- the language code of the language that should be used for language specific symbols.
-
getPattern
public String getPattern()
This method returns the actual value format pattern that should be used by the value format.- Specified by:
getPattern
in interfaceIValueFormatDefinition
- Returns:
- the actual value format pattern that should be used by the value format.
-
-