Package com.kheops.jmap.metadata
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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetTranslation(String attribute, Locale locale) protected booleanisTranslationExists(String attribute, String value) Checks a value exists (case insensitive) for the specified attribute.voidremoveTranslationsOtherThan(Locale[] locales) Removes anyLocalefrom this object that are not in the specifiedlocales.protected voidsetTranslation(String attribute, Locale locale, String value) final voidupdateTranslations(LocalizedObject localizedObject) This method update localizedObject given in param by setting the translations from this localizedObject.
-
Constructor Details
-
LocalizedObject
public LocalizedObject()
-
-
Method Details
-
getTranslation
-
setTranslation
-
isTranslationExists
Checks a value exists (case insensitive) for the specified attribute.- Parameters:
attribute-value-- Returns:
-
updateTranslations
This method update localizedObject given in param by setting the translations from this localizedObject.- Parameters:
localizedObject- the LocalizedObject instance containing the data.
-
removeTranslationsOtherThan
Removes anyLocalefrom this object that are not in the specifiedlocales.locales[0]should be the default language- Parameters:
locales-
-
getAvailableLocales
-