类的使用
org.apache.velocity.tools.generic.SafeConfig
使用SafeConfig的程序包
程序包
说明
Contains a collection of reusable, general-purpose "tools" for Velocity.
-
org.apache.velocity.tools.generic中SafeConfig的使用
修饰符和类型类说明class已过时。use CSS3 nth-child(even/odd) selectors or #if($foreach.index % 2)classThis tool is meant to simplify reflective lookup of information about aClassand itsFields,Methods, andConstructors.classCollectionTool 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.classclassTool for convenient access toContextdata and meta-data.class已过时。use NumberTool for numbers formatting/parsing, DateTool for date/time formatting/parsing, or CollectionTool for toStrings().classclassProvides general utility methods for controlling the display of references.classTool for working with escaping in Velocity templates.classThis is a simple tools class to allow easy access to static fields in a class, such as string constants from within a template.classImplements common logic and constants for tools which allow their default format to be configured.classProvides methods to import arbitrary local or remote resources as strings, generic version.classGeneral-purpose text-importing tool for templates.classTool which can parse a JSON file.classThe LinkTool provides many methods to work with URIs and can help you:classImplements common logic and constants for tools which allow their defaultLocaleto be configured.classThis tool is used to log from within templates.classA convenience tool to use with #foreach loops.classNOTE: This tools is considered "alpha" quality due to lack of testing and a generally unpolished API.classTool for performing math in Velocity.classTool for working withNumberin Velocity templates.classThis tool exposes methods to evaluate the given strings as VTL (Velocity Template Language) using either a pre-configured context or one you provide directly.classTool for accessing ResourceBundles and formatting messages therein.class已过时。use CollectionTool sort methodsclassUtility class for easy parsing of String values held in a Map.classTool for reading/navigating XML files, with XPath expressions support.