RenderDefinitionImpl
implements the RenderDefinition
interface and is used as the simplest manner in which to render DocPattern matches.
More...
Public Member Functions | |
TransformDefinitionImpl (String text) | |
Creates a new instance of NodeDefinitionImpl. | |
String | render (MatchResult result) |
Main method of RenderDefinition class. | |
String | getText () |
Retrieves the String template that will be used to render the matches. | |
Private Attributes | |
final String | TEXT |
RenderDefinitionImpl
implements the RenderDefinition
interface and is used as the simplest manner in which to render DocPattern matches.
Definition at line 21 of file TransformDefinitionImpl.java.
dochelper.TransformDefinitionImpl.TransformDefinitionImpl | ( | String | text | ) |
Creates a new instance of NodeDefinitionImpl.
text |
Definition at line 28 of file TransformDefinitionImpl.java.
String dochelper.TransformDefinitionImpl.render | ( | MatchResult | result | ) |
Main method of RenderDefinition class.
This method is called to create the output content given a set of matches for a particular regular expression.
Once a DocPattern
is executed, if it finds a set of matches (within the contents of the record) it will call the RenderDefinition
associated with it, to render the matches.
result | java.util.regex.MatchResult that contains the match results for a regular expression. It contains the whole match and separate groups. |
Implements dochelper.TransformDefinition.
Reimplemented in dochelper.xins.XINSCAPIPatternTransform.
Definition at line 47 of file TransformDefinitionImpl.java.
String dochelper.TransformDefinitionImpl.getText | ( | ) |
Retrieves the String template that will be used to render the matches.
Implements dochelper.TransformDefinition.
Definition at line 69 of file TransformDefinitionImpl.java.
final String dochelper.TransformDefinitionImpl.TEXT [private] |
Definition at line 23 of file TransformDefinitionImpl.java.