程序包的使用
org.apache.velocity.tools.generic
程序包
说明
Contains a collection of reusable, general-purpose "tools" for Velocity.
-
类说明Utility class for easily alternating over values in a list.This tool is meant to simplify reflective lookup of information about a
Classand itsFields,Methods, andConstructors.A simplified wrapping interface for inspecting features of aConstructorin an inspected Class.A simplified wrapping interface for inspecting features of aFieldin an inspected Class.A simplified wrapping interface for inspecting features of aMethodin an inspected Class.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.Measures the dimensions of the string given to its constructor.Holds aMapof results for a particular class.Implements common logic and constants for tools which allow their default format to be configured.Provides methods to import arbitrary local or remote resources as strings, generic version.Tool which can parse a JSON file.The LinkTool provides many methods to work with URIs and can help you:Implements common logic and constants for tools which allow their defaultLocaleto be configured.A convenience tool to use with #foreach loops.Represents an automatic action taken by aLoopTool.ManagedIteratorwhen aLoopTool.Conditionis satisfied by the subsequent element.Composition class which associates anLoopTool.ActionandLoopTool.Conditionfor aLoopTool.ManagedIterator.Base condition class for conditions (assumption here is that conditions are all comparative.Represents a function into which aLoopTool.ManagedIteratorcan pass it's next element to see if anLoopTool.Actionshould be taken.Iterator implementation that wraps a standardIteratorand allows it to be prematurely stopped, skipped ahead, and associated with a name for advanced nested loop control.NOTE: This tools is considered "alpha" quality due to lack of testing and a generally unpolished API.Internal class used to enable an elegant syntax for accessing resources.Implements common logic and constants for tools which automatically locks down thepublic void configure(Map params)method after it is called once.Utility class for easy parsing of String values held in a Map.Tool for reading/navigating XML files, with XPath expressions support.