Class LocalizedObject

java.lang.Object
com.kheops.jmap.metadata.LocalizedObject
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractFormField, AbstractFormInfo, AbstractLayerSettingsThematicBean.LocalizedValue, AbstractLayerTreeNode, Attribute, AttributeQuery, AttributeQueryCategory, AttributeQueryGroupInfo, AttributeQueryInfo, Form, FormRule, FormSection, JMapObject, KeyValuePair, LabelsConfiguration, Layer, LayerInfo, LayerInfoCacheEntry, MetadataField, MetadataSection, MouseOverConfiguration, Project, Thematic, ThematicCategory, UserDefinedLayer

public abstract class LocalizedObject extends Object implements Serializable
See Also:
  • Constructor Details

    • LocalizedObject

      public LocalizedObject()
  • Method Details

    • getTranslation

      protected String getTranslation(String attribute, Locale locale)
    • setTranslation

      protected void setTranslation(String attribute, Locale locale, String value)
    • isTranslationExists

      protected boolean isTranslationExists(String attribute, String value)
      Checks a value exists (case insensitive) for the specified attribute.
      Parameters:
      attribute -
      value -
      Returns:
    • updateTranslations

      public final void updateTranslations(LocalizedObject localizedObject)
      This method update localizedObject given in param by setting the translations from this localizedObject.
      Parameters:
      localizedObject - the LocalizedObject instance containing the data.
    • removeTranslationsOtherThan

      public void removeTranslationsOtherThan(Locale[] locales)
      Removes any Locale from this object that are not in the specified locales. locales[0] should be the default language
      Parameters:
      locales -
    • getAvailableLocales

      protected List<Locale> getAvailableLocales()