|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.tags.velocity.JellyContextAdapter
Adapts a JellyContext for use as a Velocity Context. This context can be used in either read-only or read-write mode. When used as a read-only adapter, items put or removeed from the Velocity context are not permitted to propogate to the JellyContext, which is the default behavior. The adapter can also be used in a read-write mode. This permits changes made by Velocity to propogate to the JellyContext.
| Constructor Summary | |
JellyContextAdapter(org.apache.commons.jelly.JellyContext jellyContext)
Constructor. |
|
| Method Summary | |
boolean |
containsKey(java.lang.Object key)
|
java.lang.Object |
get(java.lang.String key)
|
java.lang.Object[] |
getKeys()
|
boolean |
isReadOnly()
Tests if the adapter is read-only. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
|
java.lang.Object |
remove(java.lang.Object key)
|
void |
setReadOnly(boolean readOnly)
Sets the read-only flag for this adapter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JellyContextAdapter(org.apache.commons.jelly.JellyContext jellyContext)
jellyContext - The JellyContext to adapt| Method Detail |
public void setReadOnly(boolean readOnly)
readOnly - If this parameter is true, the adapter
becomes read-only. Setting the parameter to false the
adapter becomes read-write.public boolean isReadOnly()
public boolean containsKey(java.lang.Object key)
containsKey in interface org.apache.velocity.context.Contextpublic java.lang.Object get(java.lang.String key)
get in interface org.apache.velocity.context.Contextpublic java.lang.Object[] getKeys()
getKeys in interface org.apache.velocity.context.Context
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
put in interface org.apache.velocity.context.Contextpublic java.lang.Object remove(java.lang.Object key)
remove in interface org.apache.velocity.context.Context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||