no.sesat.search.view.velocity
Class AbstractDirective
java.lang.Object
org.apache.velocity.runtime.directive.Directive
no.sesat.search.view.velocity.AbstractDirective
- All Implemented Interfaces:
- Cloneable, org.apache.velocity.runtime.directive.DirectiveConstants
- Direct Known Subclasses:
- AbstractEnrichmentDirective, AllParametersDirective, BoldWordDirective, ChopStringDirective, CssDirective, FaviconDirective, HitCountDirective, ImageDirective, JavaScriptDirective, JsonDataModelDirective, MD5ParameterDirective, PublishDirective, XPathDirective, XPathForeachDirective
public abstract class AbstractDirective
- extends org.apache.velocity.runtime.directive.Directive
Useful wrapper around Velocity's Directive class.
Adds:
* methods to simplify fetching arguments,
* method to get the current datamodel out of the InternalContext Adapter,
- Version:
- $Id: AbstractDirective.java 7225 2009-04-09 00:32:20Z ssmiweve $
| Fields inherited from class org.apache.velocity.runtime.directive.Directive |
rsvc |
| Fields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants |
BLOCK, LINE |
|
Method Summary |
protected String |
getArgument(org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.Node node,
int i)
|
protected DataModel |
getDataModel(org.apache.velocity.context.InternalContextAdapter context)
|
protected Object |
getObjectArgument(org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.Node node,
int i)
|
| Methods inherited from class org.apache.velocity.runtime.directive.Directive |
getColumn, getLine, getName, getType, init, render, setLocation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDirective
public AbstractDirective()
getDataModel
protected DataModel getDataModel(org.apache.velocity.context.InternalContextAdapter context)
getArgument
protected String getArgument(org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.Node node,
int i)
getObjectArgument
protected Object getObjectArgument(org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.Node node,
int i)
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.