Class VelocityAutotagRuntime
java.lang.Object
org.apache.velocity.runtime.directive.Directive
org.apache.tiles.request.velocity.autotag.VelocityAutotagRuntime
- All Implemented Interfaces:
- Cloneable,- AutotagRuntime<Request>,- org.apache.velocity.runtime.directive.DirectiveConstants
public class VelocityAutotagRuntime
extends org.apache.velocity.runtime.directive.Directive
implements AutotagRuntime<Request>
A Runtime for implementing Velocity Directives.
- 
Field SummaryFields inherited from class org.apache.velocity.runtime.directive.Directivelog, rsvcFields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstantsBLOCK, LINE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates a new ModelBody instance to match the request.Creates a new Request instance.getName()<T> TgetParameter(String name, Class<T> type, T defaultValue) Extracts a parameter from the tag.intgetType()booleanMethods inherited from class org.apache.velocity.runtime.directive.DirectivecheckArgs, getColumn, getLine, getScopeName, getTemplate, getTemplateName, init, isScopeProvided, makeScope, postRender, preRender, setLocation, setLocation
- 
Constructor Details- 
VelocityAutotagRuntimepublic VelocityAutotagRuntime()
 
- 
- 
Method Details- 
createRequestDescription copied from interface:AutotagRuntimeCreates a new Request instance.- Specified by:
- createRequestin interface- AutotagRuntime<Request>
- Returns:
- The Request.
 
- 
createModelBodyCreates a new ModelBody instance to match the request.- Specified by:
- createModelBodyin interface- AutotagRuntime<Request>
- Returns:
- The ModelBody.
 
- 
getParameterExtracts a parameter from the tag.- Specified by:
- getParameterin interface- AutotagRuntime<Request>
- Parameters:
- name- The name of the parameter.
- defaultValue- The default value if none is specified.
- Returns:
- The value of the parameter.
 
- 
getName- Specified by:
- getNamein class- org.apache.velocity.runtime.directive.Directive
 
- 
getTypepublic int getType()- Specified by:
- getTypein class- org.apache.velocity.runtime.directive.Directive
 
- 
renderpublic boolean render(org.apache.velocity.context.InternalContextAdapter context, Writer writer, org.apache.velocity.runtime.parser.node.Node node) - Specified by:
- renderin class- org.apache.velocity.runtime.directive.Directive
 
 
-