info.magnolia.context
Class MapAttributeStrategy
java.lang.Object
info.magnolia.context.MapAttributeStrategy
- All Implemented Interfaces:
- AttributeStrategy
public class MapAttributeStrategy
- extends java.lang.Object
- implements AttributeStrategy
Hashtable
based implementation of the AttributeStrategy
.
- Version:
- $Id: $
- Author:
- had
Method Summary |
java.lang.Object |
getAttribute(java.lang.String name,
int scope)
|
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)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
|
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 |
MapAttributeStrategy
public MapAttributeStrategy()
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
- Specified by:
setAttribute
in interface AttributeStrategy
getAttribute
public java.lang.Object getAttribute(java.lang.String name,
int scope)
- Specified by:
getAttribute
in interface AttributeStrategy
removeAttribute
public void removeAttribute(java.lang.String name,
int scope)
- 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-2011 Magnolia International Ltd.. All Rights Reserved.