public interface Context
AbstractContext
,
VelocityContext
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
Indicates whether the specified key is in the context.
|
Object |
get(String key)
Gets the value corresponding to the provided key from the context.
|
String[] |
getKeys()
Get all the keys for the values in the context.
|
Object |
put(String key,
Object value)
Adds a name/value pair to the context.
|
Object |
remove(String key)
Removes the value associated with the specified key from the context.
|
Object put(String key, Object value)
key
- The name to key the provided value with.value
- The corresponding value.Object get(String key)
key
- The name of the desired value.boolean containsKey(String key)
key
- The key to look for.String[] getKeys()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.