ParserTool Class documentation for the dotCMS Content Management System

The ParserTool is a utility class for easy parsing of String values held in a Map.

The following example shows how the ParserTool is mapped in the toolbox-xml file:


Direct Known Subclasses:



public class ValueParserextends ConversionToolimplements java.util.Map<java.lang.String,java.lang.Object>

This comes in very handy when parsing parameters.

When subkeys are allowed, getValue(“foo”) will also search for all keys of the form “” 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

Javadoc: ParserTool