Uses of Class
org.apache.velocity.Template
Packages that use Template
Package
Description
-
Uses of Template in org.apache.velocity.app
Methods in org.apache.velocity.app that return TemplateModifier and TypeMethodDescriptionstatic Template
Velocity.getTemplate
(String name) Returns aTemplate
from the Velocity resource management system.static Template
Velocity.getTemplate
(String name, String encoding) Returns aTemplate
from the Velocity resource management system.VelocityEngine.getTemplate
(String name) Returns aTemplate
from the Velocity resource management system.VelocityEngine.getTemplate
(String name, String encoding) Returns aTemplate
from the Velocity resource management system. -
Uses of Template in org.apache.velocity.context
Fields in org.apache.velocity.context with type parameters of type TemplateModifier and TypeFieldDescriptionInternalContextBase.macroLibraries
List for holding the macro libraries.Methods in org.apache.velocity.context that return types with arguments of type TemplateModifier and TypeMethodDescriptionChainedInternalContextAdapter.getMacroLibraries()
InternalContextAdapterImpl.getMacroLibraries()
InternalContextBase.getMacroLibraries()
InternalHousekeepingContext.getMacroLibraries()
Get the macro library list for the current template.Method parameters in org.apache.velocity.context with type arguments of type TemplateModifier and TypeMethodDescriptionvoid
ChainedInternalContextAdapter.setMacroLibraries
(List<Template> macroLibraries) void
InternalContextAdapterImpl.setMacroLibraries
(List<Template> macroLibraries) void
InternalContextBase.setMacroLibraries
(List<Template> macroLibraries) void
InternalHousekeepingContext.setMacroLibraries
(List<Template> macroLibraries) Set the macro library list for the current template. -
Uses of Template in org.apache.velocity.runtime
Fields in org.apache.velocity.runtime declared as TemplateModifier and TypeFieldDescriptionVelocimacroFactory.Twonk.template
Template kept in this container.Fields in org.apache.velocity.runtime with type parameters of type TemplateModifier and TypeFieldDescriptionVelocimacroManager.libraries
set of names of library templates/namespacesMethods in org.apache.velocity.runtime that return TemplateModifier and TypeMethodDescriptionRuntimeInstance.getTemplate
(String name) Returns aTemplate
from the resource manager.RuntimeInstance.getTemplate
(String name, String encoding) Returns aTemplate
from the resource managerRuntimeServices.getTemplate
(String name) Returns aTemplate
from the resource manager.RuntimeServices.getTemplate
(String name, String encoding) Returns aTemplate
from the resource managerstatic Template
RuntimeSingleton.getTemplate
(String name) Returns aTemplate
from the resource manager.static Template
RuntimeSingleton.getTemplate
(String name, String encoding) Returns aTemplate
from the resource managerMethods in org.apache.velocity.runtime with parameters of type TemplateModifier and TypeMethodDescriptionboolean
RuntimeInstance.addVelocimacro
(String name, Node macro, List<Macro.MacroArg> macroArgs, Template definingTemplate) Adds a new Velocimacro.boolean
RuntimeServices.addVelocimacro
(String name, Node macro, List<Macro.MacroArg> macroArgs, Template definingTemplate) Adds a new Velocimacro.static boolean
RuntimeSingleton.addVelocimacro
(String name, Node macro, List<Macro.MacroArg> macroArgs, Template definingTemplate) Adds a new Velocimacro.boolean
VelocimacroFactory.addVelocimacro
(String name, Node macroBody, List<Macro.MacroArg> macroArgs, Template definingTemplate) Adds a macro to the factory.boolean
VelocimacroManager.addVM
(String vmName, Node macroBody, List<Macro.MacroArg> macroArgs, Template definingTemplate, boolean canReplaceGlobalMacro) Adds a VM definition to the cache.private boolean
VelocimacroFactory.canAddVelocimacro
(String name, Template definingTemplate) determines if a given macro/namespace (name, source) combo is allowed to be addedGets a VelocimacroProxy object by the name / source template duple.VelocimacroManager.getLibraryName
(String vmName, Template template) Return the library name for a given macro.RuntimeInstance.getVelocimacro
(String vmName, Template renderingTemplate, Template template) Returns the appropriate VelocimacroProxy object if vmName is a valid current Velocimacro.RuntimeServices.getVelocimacro
(String vmName, Template renderingTemplate, Template template) Returns the appropriate VelocimacroProxy object if strVMname is a valid current Velocimacro.static Directive
RuntimeSingleton.getVelocimacro
(String vmName, Template renderingTemplate, Template template) Returns the appropriate VelocimacroProxy object if strVMname is a valid current Velocimacro.VelocimacroFactory.getVelocimacro
(String vmName, Template renderingTemplate, Template sourceTemplate) actual factory: creates a Directive that will behave correctly wrt getting the framework to dig out the correct # of argsboolean
RuntimeInstance.isVelocimacro
(String vmName, Template template) Checks to see if a VM existsboolean
RuntimeServices.isVelocimacro
(String vmName, Template template) Checks to see if a VM existsstatic boolean
RuntimeSingleton.isVelocimacro
(String vmName, Template template) Checks to see if a VM existsboolean
VelocimacroFactory.isVelocimacro
(String vm, Template template) Tells the world if a given directive string is a VelocimacroParse the input and return the root of AST node structure.Parse the input and return the root of AST node structure.static SimpleNode
Parse the input and return the root of AST node structure. -
Uses of Template in org.apache.velocity.runtime.directive
Fields in org.apache.velocity.runtime.directive declared as TemplateModifier and TypeFieldDescriptionprivate Template
Directive.template
private Template
Scope.Info.template
Methods in org.apache.velocity.runtime.directive that return TemplateModifier and TypeMethodDescriptionDirective.getTemplate()
returns the template in which this directive appearsMethods in org.apache.velocity.runtime.directive with parameters of type TemplateModifier and TypeMethodDescriptionvoid
Directive.setLocation
(int line, int column, Template template) Allows the template location to be set. -
Uses of Template in org.apache.velocity.runtime.parser
Fields in org.apache.velocity.runtime.parser declared as TemplateMethods in org.apache.velocity.runtime.parser that return TemplateModifier and TypeMethodDescriptionParser.getCurrentTemplate()
StandardParser.getCurrentTemplate()
Methods in org.apache.velocity.runtime.parser with parameters of type TemplateModifier and TypeMethodDescriptionThis was also added to allow parsers to be re-usable. -
Uses of Template in org.apache.velocity.runtime.parser.node
Fields in org.apache.velocity.runtime.parser.node declared as TemplateMethods in org.apache.velocity.runtime.parser.node that return Template