|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdochelper.EscapedMatchTransformDefinition
public class EscapedMatchTransformDefinition
The class EscapedMatchNodeDefinition
implements Render
Definition
to handle the rendering of matches that include characters
that should be escaped when creating a DOM node.
Field Summary | |
---|---|
private java.lang.String |
TEXT
|
Constructor Summary | |
---|---|
EscapedMatchTransformDefinition(java.lang.String text)
Creates a new instance of EscapedMatchNodeDefinition |
Method Summary | |
---|---|
java.lang.String |
escapeText(java.lang.String text)
This Method escapes text passed in, generating a W3 DOM compliant result. |
java.lang.String |
getText()
This method gets the text template that this RenderDefinition should use in its render method. |
java.lang.String |
render(java.util.regex.MatchResult result)
This method recieves a result and applies its render definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String TEXT
Constructor Detail |
---|
public EscapedMatchTransformDefinition(java.lang.String text)
text
- Method Detail |
---|
public java.lang.String render(java.util.regex.MatchResult result)
java.util.regex.
MatchResultMatchResult
result.
For each group found in the result param the method will search its TEXT
variable for a substring composed of "\\$escapeText
.
render
in interface TransformDefinition
result
- MatchResult that contains the matches that should be rendered by this
class.
MatchResult
public java.lang.String escapeText(java.lang.String text)
text
- String to escape
public java.lang.String getText()
getText
in interface TransformDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |