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 Details

    • CmsPropertyLoaderTransformer

      public CmsPropertyLoaderTransformer(CmsObject cms, CmsResource resource, boolean search)
      Creates a new property loading Transformer.

      Parameters:
      resource - the resource where the properties are read from
      cms - the CmsObject 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 from
      locale - the locale for which properties should be accessed
      cms - the CmsObject used for reading properties.
      search - flag, indicating if property should be searched or not.
  • Method Details

    • transform

      public Object transform(Object input)
      Specified by:
      transform in interface org.apache.commons.collections.Transformer
      See Also:
      • Transformer.transform(java.lang.Object)