public class ReportDefinitionImpl extends Section implements ReportDefinition
ANONYMOUS_ELEMENT_PREFIX
Constructor and Description |
---|
ReportDefinitionImpl(MasterReport report,
PageDefinition pageDefinition)
Creates a report definition from a report object.
|
ReportDefinitionImpl(SubReport report,
PageDefinition pageDefinition,
Section parentSection) |
Modifier and Type | Method and Description |
---|---|
ReportDefinitionImpl |
clone()
Creates and returns a copy of this object.
|
ReportDefinitionImpl |
derive(boolean preserveElementInstanceIds)
Creates a deep copy of this element and regenerates all instance-ids.
|
CrosstabCellBody |
getCrosstabCellBody() |
DetailsFooter |
getDetailsFooter()
Returns the details header band.
|
DetailsHeader |
getDetailsHeader()
Returns the details header band.
|
Element |
getElement(int index)
Returns the element stored add the given index.
|
int |
getElementCount()
Returns the number of elements in this section.
|
Group |
getGroup(int groupIndex)
Returns the group at the specified index or null, if there is no such group.
|
int |
getGroupCount()
Returns the number of groups in this report.
|
ItemBand |
getItemBand()
Returns the item band.
|
ReportDefinition |
getMasterReport()
Returns the master-report element.
|
NoDataBand |
getNoDataBand()
Returns the "no-data" band, which is displayed if there is no data available.
|
PageDefinition |
getPageDefinition()
Returns the page definition assigned to the report definition.
|
PageFooter |
getPageFooter()
Returns the page footer.
|
PageHeader |
getPageHeader()
Returns the page header.
|
String |
getQuery()
Returns the query name that should be used when processing the report.
|
int |
getQueryLimit() |
int |
getQueryTimeout() |
ReportDefinition |
getReportDefinition()
Returns the currently assigned report definition.
|
ReportFooter |
getReportFooter()
Returns the report footer.
|
ReportHeader |
getReportHeader()
Returns the report header.
|
Group |
getRootGroup()
Returns the list of groups for the report.
|
Watermark |
getWatermark()
Returns the watermark band.
|
void |
setElementAt(int position,
Element element) |
getDefaultStyleSheet, iterator
copyAttributes, copyInto, derive, getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeExpressions, getAttributeNames, getAttributeNamespaces, getAttributes, getAttributeTyped, getChangeTracker, getChildElementByType, getChildElementsByName, getChildElementsByType, getComputedStyle, getContentBase, getDataSource, getDefinitionSource, getElementContext, getElementType, getElementTypeName, getFirstAttribute, getHRefTarget, getId, getMetaData, getName, getObjectID, getParent, getParentSection, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, isDynamicContent, isVisible, notifyNodeChildAdded, notifyNodeChildRemoved, notifyNodePropertiesChanged, notifyNodePropertiesChanged, notifyNodeStructureChanged, setAttribute, setAttribute, setAttributeExpression, setComputedStyle, setDataSource, setDynamicContent, setElementType, setHRefTarget, setId, setName, setStyleExpression, setVisible, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeNames, getAttributeNamespaces, getAttributes, getAttributeTyped, getChangeTracker, getChildElementByType, getChildElementsByName, getChildElementsByType, getComputedStyle, getDefaultStyleSheet, getElementContext, getElementType, getFirstAttribute, getId, getMetaData, getName, getObjectID, getParentSection, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, setAttribute, setAttribute, setAttributeExpression, setComputedStyle, setStyleExpression
forEach, spliterator
public ReportDefinitionImpl(MasterReport report, PageDefinition pageDefinition) throws ReportProcessingException
report
- the report.pageDefinition
- the current page definition.ReportProcessingException
- if there is a problem cloning.public ReportDefinitionImpl(SubReport report, PageDefinition pageDefinition, Section parentSection) throws ReportProcessingException
ReportProcessingException
public int getQueryLimit()
getQueryLimit
in interface ReportDefinition
public int getQueryTimeout()
getQueryTimeout
in interface ReportDefinition
public String getQuery()
ReportDefinition
getQuery
in interface ReportDefinition
public ReportHeader getReportHeader()
getReportHeader
in interface ReportDefinition
public ReportFooter getReportFooter()
getReportFooter
in interface ReportDefinition
public PageHeader getPageHeader()
getPageHeader
in interface ReportDefinition
public PageFooter getPageFooter()
getPageFooter
in interface ReportDefinition
public ItemBand getItemBand()
getItemBand
in interface ReportDefinition
public CrosstabCellBody getCrosstabCellBody()
getCrosstabCellBody
in interface ReportDefinition
public DetailsHeader getDetailsHeader()
getDetailsHeader
in interface ReportDefinition
public DetailsFooter getDetailsFooter()
getDetailsFooter
in interface ReportDefinition
public Group getRootGroup()
ReportDefinition
getRootGroup
in interface ReportDefinition
public NoDataBand getNoDataBand()
getNoDataBand
in interface ReportDefinition
public int getGroupCount()
Every report has at least one group defined.
getGroupCount
in interface ReportDefinition
public Group getGroup(int groupIndex)
getGroup
in interface ReportDefinition
groupIndex
- the group index.IllegalArgumentException
- if the count is negative.IndexOutOfBoundsException
- if the count is greater than the number of defined groups.public ReportDefinitionImpl clone()
clone
in interface DataTarget
clone
in class Section
CloneNotSupportedException
- if the object's class does not support the Cloneable
interface. Subclasses that override the
clone
method can also throw this exception to indicate that an instance cannot be cloned.Cloneable
public ReportDefinitionImpl derive(boolean preserveElementInstanceIds)
Element
derive
in class Section
preserveElementInstanceIds
- defines whether this call generates new instance-ids for the derived elements. Instance-IDs are used by
the report processor to recognize reoccurring elements and must not changed within the report run. Outside
of the report processors new instance ids should be generated at all times to separate instances and to
make them uniquely identifiable.public Watermark getWatermark()
ReportDefinition
getWatermark
in interface ReportDefinition
public PageDefinition getPageDefinition()
ReportDefinition
getPageDefinition
in interface ReportDefinition
public ReportDefinition getReportDefinition()
getReportDefinition
in interface ReportElement
getReportDefinition
in class Element
public ReportDefinition getMasterReport()
Element
getMasterReport
in class Element
public void setElementAt(int position, Element element)
setElementAt
in class Section
public int getElementCount()
Section
getElementCount
in class Section
public Element getElement(int index)
Section
getElement
in class Section
index
- the element position within this section