Class AttributeMap
- java.lang.Object
-
- net.anotheria.anosite.content.bean.AttributeMap
-
public class AttributeMap extends Object
A map with attributes assigned to a cms object for further processing (for example by variable processors).- Author:
- lrosenberg
-
-
Field Summary
Fields Modifier and Type Field Description static StringBOX_ATTRIBUTES_CALL_CONTEXT_SCOPE_NAMEThe name under which the box attribute map is stored in the call context to allow access by the variable processors.static StringPAGE_ATTRIBUTES_CALL_CONTEXT_SCOPE_NAMEThe name under which the page attribute map is stored in the call context to allow access by the variable processors.
-
Constructor Summary
Constructors Constructor Description AttributeMap()Creates a new attribute map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeBeangetAttribute(String key)Returns the attribute under given name.voidsetAttribute(AttributeBean b)Sets the attribute.voidsetAttribute(AttributeBean b, boolean override)Sets the attribute.StringtoString()
-
-
-
Field Detail
-
BOX_ATTRIBUTES_CALL_CONTEXT_SCOPE_NAME
public static final String BOX_ATTRIBUTES_CALL_CONTEXT_SCOPE_NAME
The name under which the box attribute map is stored in the call context to allow access by the variable processors.
-
PAGE_ATTRIBUTES_CALL_CONTEXT_SCOPE_NAME
public static final String PAGE_ATTRIBUTES_CALL_CONTEXT_SCOPE_NAME
The name under which the page attribute map is stored in the call context to allow access by the variable processors.
-
-
Method Detail
-
getAttribute
public AttributeBean getAttribute(String key)
Returns the attribute under given name.- Parameters:
key- TODO dummy comment for javadoc.- Returns:
- TODO dummy comment for javadoc.
-
setAttribute
public void setAttribute(AttributeBean b, boolean override)
Sets the attribute. If override is true an old value will be overriden.- Parameters:
b- TODO dummy comment for javadoc.override- TODO dummy comment for javadoc.
-
setAttribute
public void setAttribute(AttributeBean b)
Sets the attribute. Note, attributes aren't overriden once set.- Parameters:
b- TODO dummy comment for javadoc.
-
-