FileRenderDefinition
implements the RenderDefinition
interface and is used as the simplest manner in which to render DocPattern matches.
More...
Public Member Functions | |
FileTransformDefinition (File file) throws InitializationException | |
Creates a new instance of FileRenderDefinition. | |
FileTransformDefinition (String path) throws InitializationException | |
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 |
FileRenderDefinition
implements the RenderDefinition
interface and is used as the simplest manner in which to render DocPattern matches.
Definition at line 25 of file FileTransformDefinition.java.
dochelper.FileTransformDefinition.FileTransformDefinition | ( | File | file | ) | throws InitializationException |
Creates a new instance of FileRenderDefinition.
file |
InitializationException |
Definition at line 33 of file FileTransformDefinition.java.
dochelper.FileTransformDefinition.FileTransformDefinition | ( | String | path | ) | throws InitializationException |
path |
dochelper.exceptions.InitializationException |
Definition at line 47 of file FileTransformDefinition.java.
String dochelper.FileTransformDefinition.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.
Definition at line 72 of file FileTransformDefinition.java.
String dochelper.FileTransformDefinition.getText | ( | ) |
Retrieves the String template that will be used to render the matches.
Implements dochelper.TransformDefinition.
Definition at line 94 of file FileTransformDefinition.java.
final String dochelper.FileTransformDefinition.TEXT [private] |
Definition at line 27 of file FileTransformDefinition.java.