RecordSet
defines how a class that should be used as a RecordSet within DocHelper should behave.
More...
Public Member Functions | |
ResultNode | execute (ResultNode doc) throws ResourceUnavailableException |
Main method of RecordSet. | |
void | addPattern (DocPattern pattern) |
Add a pattern to be matched to the RecordSet. | |
void | clearPatterns () |
Clear all of the patterns. | |
void | setName (String name) |
Set the name of this Record Set. |
RecordSet
defines how a class that should be used as a RecordSet within DocHelper should behave.
The generated Main.java file that drives the Documentation process depends on RecordSets heavily.
Definition at line 23 of file RecordSet.java.
ResultNode dochelper.RecordSet.execute | ( | ResultNode | doc | ) | throws ResourceUnavailableException |
This method should append to the document the output generated by interpreting this RecordSet. If the record set implementations may also implement the DocumentSection interface, if so the implementor should use the getSTART and getEND methods to encapsulate results.
The results should be obtained by matching each pattern (n number of times )within value returned by Record getValue(). This should happen for each record in the RecordSet.
doc | The document onto which the results of running this record set should be appended to. |
ResourceUnavailableException | ||
Exception |
Implemented in dochelper.AbstractTableRecordSet, dochelper.FileRecordSet, and dochelper.URLRecordSet.
void dochelper.RecordSet.addPattern | ( | DocPattern | pattern | ) |
Add a pattern to be matched to the RecordSet.
pattern | Pattern that contains the regular expression and the Render Definition to process input into output. |
Implemented in dochelper.AbstractTableRecordSet, dochelper.FileRecordSet, and dochelper.URLRecordSet.
void dochelper.RecordSet.clearPatterns | ( | ) |
Clear all of the patterns.
Leaves the record set with no patterns assigned.
Implemented in dochelper.AbstractTableRecordSet, dochelper.FileRecordSet, and dochelper.URLRecordSet.
void dochelper.RecordSet.setName | ( | String | name | ) |
Set the name of this Record Set.
The name of the Record Set is used in conjunction with items that use the name to fetch the appropriate part of the result tree. This includes renderers.
name |
Implemented in dochelper.AbstractTableRecordSet, dochelper.FileRecordSet, and dochelper.URLRecordSet.