info.magnolia.context
Class MapAttributeStrategy

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

public class MapAttributeStrategy
extends java.lang.Object
implements AttributeStrategy


Constructor Summary
MapAttributeStrategy()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name, int scope)
          Use the Map.get()
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
          Returns the inner map
 java.util.Map<java.lang.String,java.lang.Object> getAttributes(int scope)
          Ignore scope and return the inner map
 java.util.Map<java.lang.String,java.lang.Object> getMap()
           
 void removeAttribute(java.lang.String name, int scope)
          use the Map.remove()
 void setAttribute(java.lang.String name, java.lang.Object value, int scope)
          Use the Map.put()
 void setMap(java.util.Map<java.lang.String,java.lang.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(java.lang.String name,
                         java.lang.Object value,
                         int scope)
Use the Map.put()

Specified by:
setAttribute in interface AttributeStrategy

getAttribute

public java.lang.Object getAttribute(java.lang.String name,
                                     int scope)
Use the Map.get()

Specified by:
getAttribute in interface AttributeStrategy

removeAttribute

public void removeAttribute(java.lang.String name,
                            int scope)
use the Map.remove()

Specified by:
removeAttribute in interface AttributeStrategy

getAttributes

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

Specified by:
getAttributes in interface AttributeStrategy

getAttributes

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


getMap

public java.util.Map<java.lang.String,java.lang.Object> getMap()

setMap

public void setMap(java.util.Map<java.lang.String,java.lang.Object> map)


Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.