Package com.aquima.interactions.ds
Class ValueFormatDefinition
java.lang.Object
com.aquima.interactions.ds.ValueFormatDefinition
- All Implemented Interfaces:
IValueFormatDefinition
,Serializable
This class holds a single value format definition for the application configuration.
- Since:
- 7.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValueFormatDefinition
(String type, String name, String pattern, String languageCode) Constructs the value format definition with the required arguments. -
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 the value format definition with the required arguments.- Parameters:
type
- The data type the value format is defined for.name
- The name of the value format.pattern
- The value format pattern that should be used.languageCode
- The code of the language that should be used to resolve language specific symbols.
-
-
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.
-