Class 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 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.
        Overrides:
        toString in class Object
        Returns:
        string value
      • equals

        public boolean equals​(Object objectToCompare)
        Equals method that returns true if containing properties are the same.
        Overrides:
        equals in class Object
        Parameters:
        objectToCompare - object to compare
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Just use the GUID for the hash code as it should be unique.
        Overrides:
        hashCode in class Object
        Returns:
        int code