Class TranslationDetail
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.TranslationDetail
TranslationDetail provides translated strings for an open metadata element for a specific language/locale.
-
Constructor Summary
ConstructorDescriptionDefault ConstructorTranslationDetail
(TranslationDetail template) Copy/clone Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the map of additional text string translations.Return the code set for the translation.Return the translation for the "description" property if it is used in the attached element type.Return the translation for either then "name" or "displayName" property if they are used in the attached element type.Return the name of the language that this translation is using.Return the locale that this translation is using.int
hashCode()
Just use the GUID for the hash code as it should be unique.void
setAdditionalTranslations
(Map<String, String> additionalTranslations) Set up the map of additional text string translations.void
setCodeSet
(String codeSet) Set up the code set for the translation.void
setDescription
(String description) Set up the translation for the "description" property if it is used in the attached element type.void
setDisplayName
(String displayName) Set up the translation for either then "name" or "displayName" property if they are used in the attached element type.void
setLanguage
(String language) Set up the name of the language that this translation is using.void
Set up the locale that this translation is using.toString()
Generate a string containing the properties.
-
Constructor Details
-
TranslationDetail
public TranslationDetail()Default Constructor -
TranslationDetail
Copy/clone Constructor- Parameters:
template
- object being copied
-
-
Method Details
-
getLanguage
Return the name of the language that this translation is using.- Returns:
- string name
-
setLanguage
Set up the name of the language that this translation is using.- Parameters:
language
- string name
-
getCodeSet
Return the code set for the translation.- Returns:
- string name
-
setCodeSet
Set up the code set for the translation.- Parameters:
codeSet
- string name
-
getLocale
Return the locale that this translation is using. This is more specific than the language since it covers regional difference. It is an optional value.- Returns:
- string name
-
setLocale
Set up the locale that this translation is using. This is more specific than the language since it covers regional difference. It is an optional value.- Parameters:
locale
- string name
-
getDisplayName
Return the translation for either then "name" or "displayName" property if they are used in the attached element type.- Returns:
- string value
-
setDisplayName
Set up the translation for either then "name" or "displayName" property if they are used in the attached element type.- Parameters:
displayName
- string value
-
getDescription
Return the translation for the "description" property if it is used in the attached element type.- Returns:
- string value
-
setDescription
Set up the translation for the "description" property if it is used in the attached element type.- Parameters:
description
- string value
-
getAdditionalTranslations
Return the map of additional text string translations. The name of the property is mapped to the translation.- Returns:
- map of additional translations
-
setAdditionalTranslations
Set up the map of additional text string translations. The name of the property is mapped to the translation.- Parameters:
additionalTranslations
- map of additional translations
-
toString
Generate a string containing the properties. -
equals
Equals method that returns true if containing properties are the same. -
hashCode
public int hashCode()Just use the GUID for the hash code as it should be unique.
-