Copyright© 2008-2025 Sitevision AB, all rights reserved.
public interface VelocityContext
An instance of the Sitevision class implementing this interface can be obtained via a getVelocityContext
method in VelocityRenderer.
VelocityRenderer| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String aKey)
Checks whether a name has a mapping or not.
|
Object |
get(String aKey)
Returns the mapped object for a specified name.
|
String[] |
getKeys()
Returns all names.
|
void |
put(String aKey,
Object anObject)
Adds a Name/Object mapping to the context.
|
Object |
remove(String aKey)
Removes a Name/Object mapping.
|
void put(String aKey, Object anObject)
aKey - a name, not nullanObject - an objectObject get(String aKey)
aKey - the name.null if no mapping for aKey existboolean containsKey(String aKey)
aKey - the nametrue if an Object is mapped for aKey, false otherwiseString[] getKeys()
Sitevision - Content Management Made Easy
Sitevision is an advanced Java enterprise portal product that implements Java Content Repository (JSR 283).
Copyright© 2008-2025 Sitevision AB, all rights reserved.