Class TranslationDetail
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.gaf.properties.TranslationDetail
-
- All Implemented Interfaces:
Serializable
public class TranslationDetail extends Object implements Serializable
TranslationDetail provides translated strings for an open metadata element for a specific language/locale.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TranslationDetail()Default ConstructorTranslationDetail(TranslationDetail template)Copy/clone Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.Map<String,String>getAdditionalTranslations()Return the map of additional text string translations.StringgetCodeSet()Return the code set for the translation.StringgetDescription()Return the translation for the "description" property if it is used in the attached element type.StringgetDisplayName()Return the translation for either then "name" or "displayName" property if they are used in the attached element type.StringgetLanguage()Return the name of the language that this translation is using.StringgetLocale()Return the locale that this translation is using.inthashCode()Just use the GUID for the hash code as it should be unique.voidsetAdditionalTranslations(Map<String,String> additionalTranslations)Set up the map of additional text string translations.voidsetCodeSet(String codeSet)Set up the code set for the translation.voidsetDescription(String description)Set up the translation for the "description" property if it is used in the attached element type.voidsetDisplayName(String displayName)Set up the translation for either then "name" or "displayName" property if they are used in the attached element type.voidsetLanguage(String language)Set up the name of the language that this translation is using.voidsetLocale(String locale)Set up the locale that this translation is using.StringtoString()Generate a string containing the properties.
-
-
-
Constructor Detail
-
TranslationDetail
public TranslationDetail()
Default Constructor
-
TranslationDetail
public TranslationDetail(TranslationDetail template)
Copy/clone Constructor- Parameters:
template- object being copied
-
-
Method Detail
-
getLanguage
public String getLanguage()
Return the name of the language that this translation is using.- Returns:
- string name
-
setLanguage
public void setLanguage(String language)
Set up the name of the language that this translation is using.- Parameters:
language- string name
-
getCodeSet
public String getCodeSet()
Return the code set for the translation.- Returns:
- string name
-
setCodeSet
public void setCodeSet(String codeSet)
Set up the code set for the translation.- Parameters:
codeSet- string name
-
getLocale
public String 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
public void setLocale(String locale)
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
public String getDisplayName()
Return the translation for either then "name" or "displayName" property if they are used in the attached element type.- Returns:
- string value
-
setDisplayName
public void setDisplayName(String displayName)
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
public String getDescription()
Return the translation for the "description" property if it is used in the attached element type.- Returns:
- string value
-
setDescription
public void setDescription(String description)
Set up the translation for the "description" property if it is used in the attached element type.- Parameters:
description- string value
-
getAdditionalTranslations
public Map<String,String> 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
public void setAdditionalTranslations(Map<String,String> additionalTranslations)
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
public String toString()
Generate a string containing the properties.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.
-
-