protected class CodeSampleFactory.CodeSample extends StringTransformer
| Constructor and Description |
|---|
CodeSample(String st,
String ct,
String ec,
String er)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
transform(String str)
Default transform method with no (other) parameters then the string
to transform while using <pre> as the tag between which to escape
the text while using the default escaper 'text/html'.
|
String |
transform(String str,
String starttag,
String closetag,
String escapecode,
String escaperest)
Transforms the characters of a code example between two tags,
<pre>-tags and </pre> f.e., within a string and can use a
different escaper for the rest of the text.
|
String |
transformPart(String str,
String escaper)
Transforms parts of the string.
|
transform, transform, transformBack, transformBack, transformBackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic String transform(String str)
transform in interface CharTransformertransform in class StringTransformerstr - The original stringpublic String transform(String str, String starttag, String closetag, String escapecode, String escaperest)
str - The original stringstarttag - The opentag of the pair of tags between which code needs to be escapedclosetag - The closetag of the pair of tags between which code needs to be escapedescapecode - The escaper to use on the piece of text between the tagsescaperest - The escaper to use on the rest of the textpublic String transformPart(String str, String escaper)
XmlField and Xml.
This method needs to be rewritten to support all escapers/transformers. It only
supports p, pp, p-ommit-surrounding, pp-ommit-surrounding, inline, text/html and text/xml.str - String to transformescaper - The transformer or escaper to use (see escaper attr of <mm:content />)MMBase 1.9-SNAPSHOT - ${javadoctimestamp}