jbreport.core
Class DefaultReportVisitor

java.lang.Object
jbreport.core.DefaultReportVisitor
- All Implemented Interfaces:
- ReportVisitor
- public class DefaultReportVisitor
- extends java.lang.Object
- implements ReportVisitor
This is an implementation of the ReportVisitor interface which does nothing.
It is provided as a convenience to aid writing concrete implementations of
the ReportVisitor class.
For more advanced uses, this class implements the Composite pattern,
and enables more than one ReportVisitor to be used for every traversal.
- Version:
- $Revision: 1.1 $
|
Method Summary |
void |
addChild(ReportVisitor child)
This method will add the given ReportVisitor instance to an internal
collection, and on every visit method, all the child visitors will
be invoked. |
void |
visitAggregate(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitDatasource(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitDocument(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitFragment(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitGroup(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitInclude(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitQuery(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitQueryBoundResult(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitReportComposite(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitReportSection(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitRepository(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitSectionBreak(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitStyle(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitStylesheet(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitTable(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitTableHeaderItem(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitTableHeaderRow(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitTableRow(jbreport.ReportElement elem,
ReportVisitorState state)
|
void |
visitTLine(jbreport.ReportElement elem,
ReportVisitorState state)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
children
private java.util.List children
- The children of this Visitor.
DefaultReportVisitor
public DefaultReportVisitor()
addChild
public void addChild(ReportVisitor child)
- This method will add the given ReportVisitor instance to an internal
collection, and on every visit method, all the child visitors will
be invoked.
visitReportComposite
public void visitReportComposite(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitReportComposite in interface ReportVisitor
visitGroup
public void visitGroup(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitGroup in interface ReportVisitor
visitReportSection
public void visitReportSection(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitReportSection in interface ReportVisitor
visitQuery
public void visitQuery(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitQuery in interface ReportVisitor
visitDatasource
public void visitDatasource(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitDatasource in interface ReportVisitor
visitRepository
public void visitRepository(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitRepository in interface ReportVisitor
visitDocument
public void visitDocument(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitDocument in interface ReportVisitor
visitFragment
public void visitFragment(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitFragment in interface ReportVisitor
visitInclude
public void visitInclude(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitInclude in interface ReportVisitor
visitQueryBoundResult
public void visitQueryBoundResult(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitQueryBoundResult in interface ReportVisitor
visitSectionBreak
public void visitSectionBreak(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitSectionBreak in interface ReportVisitor
visitTLine
public void visitTLine(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitTLine in interface ReportVisitor
visitTable
public void visitTable(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitTable in interface ReportVisitor
visitTableHeaderRow
public void visitTableHeaderRow(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitTableHeaderRow in interface ReportVisitor
visitTableHeaderItem
public void visitTableHeaderItem(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitTableHeaderItem in interface ReportVisitor
visitTableRow
public void visitTableRow(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitTableRow in interface ReportVisitor
visitStylesheet
public void visitStylesheet(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitStylesheet in interface ReportVisitor
visitStyle
public void visitStyle(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitStyle in interface ReportVisitor
visitAggregate
public void visitAggregate(jbreport.ReportElement elem,
ReportVisitorState state)
throws jbreport.ReportException
- Specified by:
visitAggregate in interface ReportVisitor