ParserTool Class - Documentation topics on: parsertool,velocity,velocity tools,.

ParserTool Class

org.apache.velocity.tools.generic
Class ValueParser

java.lang.Object
org.apache.velocity.tools.generic.SafeConfig
org.apache.velocity.tools.generic.LocaleConfig
org.apache.velocity.tools.generic.ConversionTool
org.apache.velocity.tools.generic.ValueParser
All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>
Direct Known Subclasses:
ParameterTool

@DefaultKey(value="parser")
public class ValueParserextends ConversionToolimplements java.util.Map<java.lang.String,java.lang.Object>

Utility class for easy parsing of String values held in a Map.

This comes in very handy when parsing parameters.

When subkeys are allowed, getValue("foo") will also search for all keys of the form "foo.bar" and return a ValueParser of the type "bar" -> value for all found values.

TODO: someone doing java configuration ought to be able to put a source Map in the tool properties, allowing this to be used like other tools

Since:
VelocityTools 1.2
Version:
$Revision: 749732 $ $Date: 2009-03-03 12:23:59 -0800 (Tue, 03 Mar 2009) $
Author:
Nathan Bubna

For documentation on this viewtool use the following link: ParserTool