Class EnvironmentScopeExtractor

java.lang.Object
org.apache.tiles.request.freemarker.extractor.EnvironmentScopeExtractor
All Implemented Interfaces:
Addable<Object>, AttributeExtractor, HasAddableKeys<Object>, HasKeys<Object>, HasRemovableKeys<Object>

public class EnvironmentScopeExtractor extends Object implements AttributeExtractor
Extract attributes from Environment objects as a scope.
  • Constructor Details

    • EnvironmentScopeExtractor

      public EnvironmentScopeExtractor(freemarker.core.Environment request)
      Constructor.
      Parameters:
      request - The environment.
  • Method Details

    • removeValue

      public void removeValue(String name)
      Description copied from interface: HasRemovableKeys
      Removes an attribute.
      Specified by:
      removeValue in interface HasRemovableKeys<Object>
      Parameters:
      name - The key of the attribute to remove.
    • getKeys

      public Enumeration<String> getKeys()
      Description copied from interface: HasKeys
      The enumeration of the keys of the stored attributes.
      Specified by:
      getKeys in interface HasKeys<Object>
      Returns:
      The keys.
    • getValue

      public Object getValue(String key)
      Description copied from interface: HasKeys
      Returns the value of the attribute with the given key.
      Specified by:
      getValue in interface HasKeys<Object>
      Parameters:
      key - The key of the attribute.
      Returns:
      The value.
    • setValue

      public void setValue(String key, Object value)
      Description copied from interface: Addable
      Sets a value for the given key.
      Specified by:
      setValue in interface Addable<Object>
      Parameters:
      key - The key of the attribute.
      value - The value of the attribute.