| java.lang.Object org.radeox.macro.BaseMacro org.radeox.macro.Preserved
All known Subclasses: org.radeox.macro.LocalePreserved,
Preserved | abstract public class Preserved extends BaseMacro (Code) | | A specialized macro that allows to preserve certain special characters by
creating character entities. The subclassing macro may decide whether to call
replace() before or after executing the actual macro substitution.
author: Matthias L. Jugel version: $Id: Preserved.java 7756 2006-04-13 12:25:49Z ian@caret.cam.ac.uk $ |
addSpecial | protected void addSpecial(char c)(Code) | | Encode special character c by replacing with it's hex character entity
code.
|
addSpecial | protected void addSpecial(String c, String replacement)(Code) | | Add a replacement for the special character c which may be a string
Parameters: c - the character to replace Parameters: replacement - the new string |
replace | protected String replace(String source)(Code) | | Actually replace specials in source. This method can be used by
subclassing macros.
Parameters: source - String to encode encoded Encoded string |
|
|