Package org.opencms.jsp.util
Class CmsJspValueTransformers.CmsPropertyLoaderTransformer
java.lang.Object
org.opencms.jsp.util.CmsJspValueTransformers.CmsPropertyLoaderTransformer
- All Implemented Interfaces:
org.apache.commons.collections.Transformer
- Enclosing class:
- CmsJspValueTransformers
public static final class CmsJspValueTransformers.CmsPropertyLoaderTransformer
extends Object
implements org.apache.commons.collections.Transformer
Transformer that reads a resource property,
the input is used as String for the property name to read.
-
Constructor Summary
ConstructorDescriptionCmsPropertyLoaderTransformer
(CmsObject cms, CmsResource resource, boolean search) Creates a new property loading Transformer.CmsPropertyLoaderTransformer
(CmsObject cms, CmsResource resource, boolean search, Locale locale) Creates a new property loading Transformer. -
Method Summary
-
Constructor Details
-
CmsPropertyLoaderTransformer
Creates a new property loading Transformer.- Parameters:
resource
- the resource where the properties are read fromcms
- theCmsObject
used for reading properties.search
- flag, indicating if property should be searched or not.
-
CmsPropertyLoaderTransformer
public CmsPropertyLoaderTransformer(CmsObject cms, CmsResource resource, boolean search, Locale locale) Creates a new property loading Transformer.- Parameters:
resource
- the resource where the properties are read fromlocale
- the locale for which properties should be accessedcms
- theCmsObject
used for reading properties.search
- flag, indicating if property should be searched or not.
-
-
Method Details
-
transform
- Specified by:
transform
in interfaceorg.apache.commons.collections.Transformer
- See Also:
-
Transformer.transform(java.lang.Object)
-