|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdochelper.DocumentDefinition
public class DocumentDefinition
The class DocumentDefinition
implements one of the launch points
for the DocHelper process. It holds the main elements that compose a
Document : RecordSet
s.
This class conatains a DocumentSection
in order to implement
output encapsulation. Since DocumentDefinition
is the top most
element, begining and end sections are defined within (if any) the
DocumentSection object.
DocumentSection
Field Summary | |
---|---|
private ResultNode |
_result
|
(package private) java.lang.String |
name
Name that identifies this Document Definition |
private java.util.Hashtable<java.lang.String,Processor> |
processors
|
protected java.util.ArrayList<RecordSet> |
recordSets
|
private java.util.ArrayList<Renderer> |
renderers
|
Constructor Summary | |
---|---|
DocumentDefinition()
Constructors for Document Definition |
|
DocumentDefinition(java.lang.String name)
Constructor to create instance. |
Method Summary | |
---|---|
void |
addProcessor(java.lang.String key,
Processor ps)
Add a Processor for this document. |
void |
addRecordSet(RecordSet rs)
Add a RecordSet to the list of RecordSets to be used to create the output Document. |
void |
addRenderer(Renderer r)
Add a Renderer to the list of Renderer that will create output for this document. |
void |
execute()
Execute DocumentDefinition. |
void |
executeProcessors()
|
ResultNode |
getDocument()
|
java.util.Hashtable<java.lang.String,Processor> |
getProcessors()
|
java.util.ArrayList<RecordSet> |
getRecordSets()
Return the list of RecordSets for this Document Definition. |
java.util.ArrayList<Renderer> |
getRenderers()
|
void |
render()
Fetches all the Renderers associated with the document and executes them passing this document's result node tree a the tree to render. |
void |
setDocument(ResultNode result)
Set the root result node. |
void |
setRecordSets(java.util.ArrayList<RecordSet> recordSets)
Set the list of RecordSet s to use for this DocumentDefinition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<RecordSet> recordSets
private java.util.Hashtable<java.lang.String,Processor> processors
private java.util.ArrayList<Renderer> renderers
private ResultNode _result
java.lang.String name
Constructor Detail |
---|
public DocumentDefinition()
public DocumentDefinition(java.lang.String name)
name
- Method Detail |
---|
public java.util.ArrayList<RecordSet> getRecordSets()
public void setRecordSets(java.util.ArrayList<RecordSet> recordSets)
recordSets
- public void addRecordSet(RecordSet rs)
rs
- RecordSet to add.public void addProcessor(java.lang.String key, Processor ps)
ps
- Processor to add.public void addRenderer(Renderer r)
r
- Renderer to add.public void execute()
java.lang.Exception
public void render()
java.lang.Exception
public void executeProcessors()
public ResultNode getDocument()
public void setDocument(ResultNode result)
result
- ResultNode which is the root of the result node tree.public java.util.Hashtable<java.lang.String,Processor> getProcessors()
public java.util.ArrayList<Renderer> getRenderers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |