public interface Context
AbstractContext,
VelocityContext| 限定符和类型 | 方法和说明 |
|---|---|
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.