|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.context.BasicAttributeContext
public class BasicAttributeContext
Basic implementation for AttributeContext
.
Constructor Summary | |
---|---|
BasicAttributeContext()
Constructor. |
|
BasicAttributeContext(AttributeContext context)
Copy constructor. |
|
BasicAttributeContext(Map<String,Attribute> attributes)
Constructor. |
Method Summary | |
---|---|
void |
addAll(Map<String,Attribute> newAttributes)
Add all attributes to this context. |
void |
addMissing(Map<String,Attribute> defaultAttributes)
Add all missing attributes to this context. |
void |
clear()
Clear the attributes. |
Attribute |
getAttribute(String name)
Get an attribute from context. |
Iterator<String> |
getAttributeNames()
Get names of all attributes. |
static AttributeContext |
getContext(TilesRequestContext tilesContext)
Deprecated. Use TilesContainer#getAttributeContext(Object...) . |
static Stack<AttributeContext> |
getContextStack(TilesRequestContext tilesContext)
Deprecated. Use TilesContainer#getAttributeContext(Object...) ,
TilesContainer#startContext(Object...) or
TilesContainer#endContext(Object...) . |
static AttributeContext |
popContext(TilesRequestContext tilesContext)
Deprecated. Use TilesContainer#endContext(Object...) . |
static void |
pushContext(AttributeContext context,
TilesRequestContext tilesContext)
Deprecated. Use TilesContainer#startContext(Object...) . |
void |
putAttribute(String name,
Attribute value)
Put a new attribute to context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicAttributeContext()
public BasicAttributeContext(Map<String,Attribute> attributes)
attributes
- Attributes to initialize context.public BasicAttributeContext(AttributeContext context)
context
- The constructor to copy.Method Detail |
---|
public void addAll(Map<String,Attribute> newAttributes)
addAll
in interface AttributeContext
newAttributes
- Attributes to add.public void addMissing(Map<String,Attribute> defaultAttributes)
addMissing
in interface AttributeContext
defaultAttributes
- Attributes to add.public Attribute getAttribute(String name)
getAttribute
in interface AttributeContext
name
- Name of the attribute.
public Iterator<String> getAttributeNames()
getAttributeNames
in interface AttributeContext
public void putAttribute(String name, Attribute value)
putAttribute
in interface AttributeContext
name
- Name of the attribute.value
- Value of the attribute.@Deprecated public static AttributeContext getContext(TilesRequestContext tilesContext)
TilesContainer#getAttributeContext(Object...)
.
tilesContext
- current Tiles application context.
@Deprecated public static Stack<AttributeContext> getContextStack(TilesRequestContext tilesContext)
TilesContainer#getAttributeContext(Object...)
,
TilesContainer#startContext(Object...)
or
TilesContainer#endContext(Object...)
.
tilesContext
- The Tiles context object to use.
@Deprecated public static void pushContext(AttributeContext context, TilesRequestContext tilesContext)
TilesContainer#startContext(Object...)
.
context
- The context to push.tilesContext
- The Tiles context object to use.public static AttributeContext popContext(TilesRequestContext tilesContext)
TilesContainer#endContext(Object...)
.
tilesContext
- The Tiles context object to use.
public void clear()
clear
in interface AttributeContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |