public class MapAttributeStrategy extends Object implements AttributeStrategy
Hashtable
based implementation of the AttributeStrategy
.Constructor and Description |
---|
MapAttributeStrategy() |
Modifier and Type | Method and Description |
---|---|
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) |
public void setAttribute(String name, Object value, int scope)
setAttribute
in interface AttributeStrategy
public Object getAttribute(String name, int scope)
getAttribute
in interface AttributeStrategy
public void removeAttribute(String name, int scope)
removeAttribute
in interface AttributeStrategy
public Map<String,Object> getAttributes(int scope)
getAttributes
in interface AttributeStrategy
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.