| Base class for escaping references. To use it, override the following methods:
String escape(String text)
- escape the provided text
String getMatchAttribute()
- retrieve the configuration attribute used to match references (see below)
By default, all references are escaped. However, by setting the match attribute
in the configuration file to a regular expression, users can specify which references
to escape. For example the following configuration property tells the EscapeSqlReference
event handler to only escape references that start with "sql".
(e.g. $sql , $sql.toString(), , etc).
eventhandler.escape.sql.match = /sql.*/
Regular expressions should follow the "Perl5" format used by the ORO regular expression
library. More info is at
http://jakarta.apache.org/oro/api/org/apache/oro/text/perl/package-summary.html.
author: Will Glass-Husain version: $Id: EscapeReference.java 470256 2006-11-02 07:20:36Z wglass $ |