Package com.aquima.interactions.ds
Class LanguageFormatDefinition
java.lang.Object
com.aquima.interactions.ds.LanguageFormatDefinition
- All Implemented Interfaces:
Serializable
This class contains a mapping between a data type and a value format that should be used for that type. The mapping
may also contain a language code, indicating that this mapping is only applicable for the specified language.
- Since:
- 7.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageFormatDefinition
(String type, String formatName) Constructs the type mapping with the required arguments.LanguageFormatDefinition
(String type, String formatName, String languageCode) Constructs the type mapping with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name of the value format the type is mapped to.This method returns the language code the mapping was defined for.getType()
This method returns the type the format should be mapped to.boolean
This method returns a boolean indicating if this type mapping may be used as default when no specific mapping can be found for a language.
-
Constructor Details
-
LanguageFormatDefinition
Constructs the type mapping with the required arguments.- Parameters:
type
- The name of the data type the mapping is defined for.formatName
- The name of the value format that should be used for the type.
-
LanguageFormatDefinition
Constructs the type mapping with the required arguments.- Parameters:
type
- The name of the data type the mapping is defined for.formatName
- The name of the value format that should be used for the type.languageCode
- The code of the language for which this mapping is defined (optional).
-
-
Method Details
-
getType
This method returns the type the format should be mapped to.- Returns:
- the type the format should be mapped to.
-
getFormatName
This method returns the name of the value format the type is mapped to.- Returns:
- the name of the value format the type is mapped to.
-
getLanguageCode
This method returns the language code the mapping was defined for. The language code of a mapping is optional in the configuration, so this method may return null.- Returns:
- the language code the mapping was defined for.
-
isDefaultMapping
public boolean isDefaultMapping()This method returns a boolean indicating if this type mapping may be used as default when no specific mapping can be found for a language.- Returns:
- Boolean indicating if this type mapping may be used as default when no specific mapping can be found for a language.
-