info.magnolia.context
Class MapAttributeStrategy

java.lang.Object
  extended by info.magnolia.context.MapAttributeStrategy
All Implemented Interfaces:
AttributeStrategy

public class MapAttributeStrategy
extends Object
implements AttributeStrategy

Hashtable based implementation of the AttributeStrategy.

Version:
$Id: $
Author:
had

Constructor Summary
MapAttributeStrategy()
           
 
Method Summary
 Object getAttribute(String name, int scope)
           
 Map<String,Object> getAttributes()
          Returns the inner map.
 Map<String,Object> getAttributes(int scope)
          Ignore scope and return the inner map.
 Map<String,Object> getMap()
           
 void removeAttribute(String name, int scope)
           
 void setAttribute(String name, Object value, int scope)
           
 void setMap(Map<String,Object> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapAttributeStrategy

public MapAttributeStrategy()
Method Detail

setAttribute

public void setAttribute(String name,
                         Object value,
                         int scope)
Specified by:
setAttribute in interface AttributeStrategy

getAttribute

public Object getAttribute(String name,
                           int scope)
Specified by:
getAttribute in interface AttributeStrategy

removeAttribute

public void removeAttribute(String name,
                            int scope)
Specified by:
removeAttribute in interface AttributeStrategy

getAttributes

public Map<String,Object> getAttributes(int scope)
Ignore scope and return the inner map.

Specified by:
getAttributes in interface AttributeStrategy

getAttributes

public Map<String,Object> getAttributes()
Returns the inner map.


getMap

public Map<String,Object> getMap()

setMap

public void setMap(Map<String,Object> map)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.