Package org.opencms.file
Class CmsProperty.CmsPropertyLocaleTransformer
java.lang.Object
org.opencms.file.CmsProperty.CmsPropertyLocaleTransformer
- All Implemented Interfaces:
org.apache.commons.collections.Transformer
- Enclosing class:
- CmsProperty
public static class CmsProperty.CmsPropertyLocaleTransformer
extends Object
implements org.apache.commons.collections.Transformer
Transforms a given properties map, to a map where the returned values for a property are
dependent on the locale.
-
Constructor Summary
ConstructorDescriptionCmsPropertyLocaleTransformer
(Map<String, String> properties, Locale locale) Default constructor. -
Method Summary
-
Constructor Details
-
CmsPropertyLocaleTransformer
Default constructor.- Parameters:
properties
- the "raw" properties map as read for a resource.locale
- the locale w.r.t. which the properties should be accessed.
-
-
Method Details
-
transform
- Specified by:
transform
in interfaceorg.apache.commons.collections.Transformer
- See Also:
-
Transformer.transform(java.lang.Object)
-
readProperty
Looks up a property inm_properties
, but returns the localized variant.- Parameters:
propertyName
- the property to look up- Returns:
- the value of the property
-