Class ValueFormatDefinition
java.lang.Object
com.aquima.interactions.project.impl.ValueFormatDefinition
- All Implemented Interfaces:
IValueFormatDefinition
,Serializable
This class holds a single value format definition for the application configuration.
- Since:
- 8.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValueFormatDefinition
(IValueFormatDS datasource) Constructs a value format definition based on a datasource. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the language code of the language that should be used for language specific symbols.getName()
This method returns the name of the value format definition.This method returns the actual value format pattern that should be used by the value format.getType()
This method returns the data type the value format was defined for.
-
Constructor Details
-
ValueFormatDefinition
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 Details
-
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
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
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
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.
-