Package | Description |
---|---|
org.apache.velocity.tools.generic |
Contains a collection of reusable, general-purpose "tools" for Velocity.
|
org.apache.velocity.tools.view |
Contains tools and supporting infrastructure for using
those tools in a servlet environment as well as general
use classes to support use of Velocity as (or in) the
view layer of web applications.
|
Modifier and Type | Class and Description |
---|---|
class |
AlternatorTool
Deprecated.
use CSS3 nth-child(even/odd) selectors or #if($foreach.index % 2)
|
class |
ClassTool
This tool is meant to simplify reflective lookup of information about
a
Class and its Field s, Method s, and Constructor s. |
class |
CollectionTool
CollectionTool allows a user to sort a collection (or array, iterator, etc)
on any arbitrary set of properties exposed by the objects contained
within the collection, and to generate arrays by splitting strings.
|
class |
ContextTool
Tool for convenient access to
Context data and
meta-data. |
class |
ConversionTool
Deprecated.
use NumberTool for numbers formatting/parsing, DateTool for date/time formatting/parsing,
or CollectionTool for toStrings().
|
class |
DateTool
|
class |
DisplayTool
Provides general utility methods for controlling the display of references.
|
class |
EscapeTool
Tool for working with escaping in Velocity templates.
|
class |
FieldTool
This is a simple tools class to allow easy access to static fields in a class,
such as string constants from within a template.
|
class |
ImportTool
General-purpose text-importing tool for templates.
|
class |
JsonTool
Tool which can parse a JSON file.
|
class |
LinkTool
The LinkTool provides many methods to work with URIs and can help you:
|
class |
LogTool
This tool is used to log from within templates.
|
class |
LoopTool
A convenience tool to use with #foreach loops.
|
class |
MarkupTool
NOTE: This tools is considered "alpha" quality due to lack of testing
and a generally unpolished API.
|
class |
MathTool
Tool for performing math in Velocity.
|
class |
NumberTool
Tool for working with
Number in Velocity templates. |
class |
RenderTool
This tool exposes methods to evaluate the given
strings as VTL (Velocity Template Language)
using either a pre-configured context or one you
provide directly.
|
class |
ResourceTool
Tool for accessing ResourceBundles and formatting messages therein.
|
class |
SortTool
Deprecated.
use CollectionTool sort methods
|
class |
ValueParser
Utility class for easy parsing of String values held in a Map.
|
class |
XmlTool
Tool for reading/navigating XML files.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSearchTool
Abstract view tool for doing "searching" and robust
pagination of search results.
|
class |
BrowserTool
Browser sniffing tool (session or request scope requested, session scope advised).
|
class |
CookieTool
View tool for convenient cookie access and creation.
|
class |
ImportTool
General-purpose text-importing view tool for templates.
|
class |
IncludeTool
Allows for transparent content negotiation in a manner mimicking
Apache httpd's MultiViews.
|
class |
JsonTool
View version of
JsonTool . |
class |
PagerTool
View tool for doing request-based pagination of
items in an a list.
|
class |
ParameterTool
Utility class for easy parsing of
ServletRequest parameters. |
class |
UiDependencyTool
NOTE: This tool is considered "beta" quality due to lack of public testing
and is not automatically provided via the default tools.xml file.
|
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.