dochelper.TransformDefinition Interface Reference

The interface RenderDefinition defines how classes that are going to be utilized to Render DocPattern matches should behave. More...

Inheritance diagram for dochelper.TransformDefinition:

Inheritance graph
[legend]

List of all members.

Public Member Functions

String render (MatchResult result)
 Main method of RenderDefinition interface.
String getText ()
 Retrieves the String template that will be used to render the matches.


Detailed Description

The interface RenderDefinition defines how classes that are going to be utilized to Render DocPattern matches should behave.

Author:
Guillermo Christen

Definition at line 21 of file TransformDefinition.java.


Member Function Documentation

String dochelper.TransformDefinition.render ( MatchResult  result  ) 

Main method of RenderDefinition interface.

This method is called for all RenderDefinitions 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.

Parameters:
result java.util.regex.MatchResult that contains the match results for a regular expression. It contains the whole match and separate groups.
Returns:
String containing the render result.

Implemented in dochelper.DocPattern, dochelper.EscapedMatchTransformDefinition, dochelper.FileTransformDefinition, dochelper.TransformDefinitionImpl, and dochelper.xins.XINSCAPIPatternTransform.

Here is the caller graph for this function:

String dochelper.TransformDefinition.getText (  ) 

Retrieves the String template that will be used to render the matches.

Returns:
String containing template to be used to render matches.

Implemented in dochelper.DocPattern, dochelper.EscapedMatchTransformDefinition, dochelper.FileTransformDefinition, and dochelper.TransformDefinitionImpl.

Here is the caller graph for this function:


The documentation for this interface was generated from the following file:

Generated on Wed Jun 17 14:22:15 2009 for DocHelper by  doxygen 1.5.6