|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.request.velocity.autotag.VelocityUtil
public final class VelocityUtil
Utilities for Velocity usage in Tiles.
Method Summary | |
---|---|
static Object |
getObject(Object value,
Object defaultValue)
Returns the "value" parameter if it is not null, otherwise returns "defaultValue". |
static Map<String,Object> |
getParameters(org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.Node node)
Extracts the parameters from the directives, by getting the child at position 0 supposing it is a map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Map<String,Object> getParameters(org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.Node node)
context
- The Velocity context.node
- The node to use.
public static Object getObject(Object value, Object defaultValue)
value
- The value to return, if it is not null.defaultValue
- The value to return, if value
is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |