org.apache.velocity.context
public interface Context
AbstractContext
,
VelocityContext
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key)
Indicates whether the specified key is in the context.
|
java.lang.Object |
get(java.lang.String key)
Gets the value corresponding to the provided key from the context.
|
java.lang.Object[] |
getKeys()
Get all the keys for the values in the context.
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Adds a name/value pair to the context.
|
java.lang.Object |
remove(java.lang.Object key)
Removes the value associated with the specified key from the context.
|
java.lang.Object put(java.lang.String key, java.lang.Object value)
key
- The name to key the provided value with.value
- The corresponding value.java.lang.Object get(java.lang.String key)
key
- The name of the desired value.boolean containsKey(java.lang.Object key)
key
- The key to look for.java.lang.Object[] getKeys()
java.lang.Object remove(java.lang.Object key)
key
- The name of the value to remove.null
if unmapped.Copyright © 2000-2014. All Rights Reserved.