Package net.sf.jasperreports.engine.base
Class JRBaseObjectFactory
- java.lang.Object
-
- net.sf.jasperreports.engine.JRAbstractObjectFactory
-
- net.sf.jasperreports.engine.base.JRBaseObjectFactory
-
- All Implemented Interfaces:
JRVisitor
- Direct Known Subclasses:
DatasetCloneObjectFactory
,TableReportBaseObjectFactory
public class JRBaseObjectFactory extends JRAbstractObjectFactory
Factory of objects used in compiled reports.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_CROSSTAB_ID_NOT_FOUND
static String
EXCEPTION_MESSAGE_KEY_EXPRESSION_ID_NOT_FOUND
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRBaseObjectFactory(JRDefaultStyleProvider defaultStyleProvider)
protected
JRBaseObjectFactory(JRDefaultStyleProvider defaultStyleProvider, JRExpressionCollector expressionCollector)
Constructs a base object factory.protected
JRBaseObjectFactory(JRExpressionCollector expressionCollector)
-
Method Summary
-
Methods inherited from class net.sf.jasperreports.engine.JRAbstractObjectFactory
get, getExpression, getFont, getVisitResult, put, setVisitResult
-
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_CROSSTAB_ID_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_CROSSTAB_ID_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_EXPRESSION_ID_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_EXPRESSION_ID_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRBaseObjectFactory
protected JRBaseObjectFactory(JRDefaultStyleProvider defaultStyleProvider)
-
JRBaseObjectFactory
protected JRBaseObjectFactory(JRDefaultStyleProvider defaultStyleProvider, JRExpressionCollector expressionCollector)
Constructs a base object factory.- Parameters:
defaultStyleProvider
- the default style providerexpressionCollector
- the expression collector used as expression ID provider
-
JRBaseObjectFactory
protected JRBaseObjectFactory(JRExpressionCollector expressionCollector)
-
-
Method Detail
-
setDefaultStyleProvider
public void setDefaultStyleProvider(JRDefaultStyleProvider defaultStyleProvider)
-
getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()
- Specified by:
getDefaultStyleProvider
in classJRAbstractObjectFactory
-
getStyle
public JRStyle getStyle(JRStyle style)
- Specified by:
getStyle
in classJRAbstractObjectFactory
-
setStyle
public void setStyle(JRStyleSetter setter, JRStyleContainer styleContainer)
This method preserves both specified styles and external style name references.- Specified by:
setStyle
in classJRAbstractObjectFactory
- Parameters:
setter
- a setter for the object on which the style should be set.styleContainer
- the original style container- See Also:
JRAbstractObjectFactory.setStyle(JRStyleSetter, JRStyleContainer)
-
handleStyleNameReference
protected void handleStyleNameReference(JRStyleSetter setter, String nameReference)
-
getScriptlet
protected JRBaseScriptlet getScriptlet(JRScriptlet scriptlet)
-
getParameter
protected JRBaseParameter getParameter(JRParameter parameter)
-
getQuery
protected JRBaseQuery getQuery(JRQuery query)
-
getQueryChunk
protected JRBaseQueryChunk getQueryChunk(JRQueryChunk queryChunk)
-
getField
protected JRBaseField getField(JRField field)
-
getSortField
protected JRBaseSortField getSortField(JRSortField sortField)
-
getVariable
public JRBaseVariable getVariable(JRVariable variable)
-
getExpression
public JRExpression getExpression(JRExpression expression, boolean assignNotUsedId)
- Specified by:
getExpression
in classJRAbstractObjectFactory
-
getExpressionChunk
protected JRBaseExpressionChunk getExpressionChunk(JRExpressionChunk expressionChunk)
-
getGroup
public JRBaseGroup getGroup(JRGroup group)
-
getSection
protected JRBaseSection getSection(JRSection section)
-
getBand
protected JRBaseBand getBand(JRBand band)
-
getPart
protected JRBasePart getPart(JRPart part)
-
visitElementGroup
public void visitElementGroup(JRElementGroup elementGroup)
-
visitBreak
public void visitBreak(JRBreak breakElement)
-
visitLine
public void visitLine(JRLine line)
-
visitRectangle
public void visitRectangle(JRRectangle rectangle)
-
visitEllipse
public void visitEllipse(JREllipse ellipse)
-
visitImage
public void visitImage(JRImage image)
-
visitStaticText
public void visitStaticText(JRStaticText staticText)
-
visitTextField
public void visitTextField(JRTextField textField)
-
visitSubreport
public void visitSubreport(JRSubreport subreport)
-
getSubreportParameter
public JRBaseSubreportParameter getSubreportParameter(JRSubreportParameter subreportParameter)
-
getDatasetParameter
protected JRBaseDatasetParameter getDatasetParameter(JRDatasetParameter datasetParameter)
-
getSubreportReturnValue
public JRBaseSubreportReturnValue getSubreportReturnValue(JRSubreportReturnValue returnValue)
-
getReturnValue
protected BaseReturnValue getReturnValue(ReturnValue returnValue)
-
getReturnValue
protected BaseExpressionReturnValue getReturnValue(ExpressionReturnValue returnValue)
-
getConditionalStyle
public JRConditionalStyle getConditionalStyle(JRConditionalStyle conditionalStyle, JRStyle style)
- Specified by:
getConditionalStyle
in classJRAbstractObjectFactory
-
getCrosstabDataset
public JRBaseCrosstabDataset getCrosstabDataset(JRCrosstabDataset crosstabDataset)
-
getCrosstabRowGroup
public JRBaseCrosstabRowGroup getCrosstabRowGroup(JRCrosstabRowGroup group)
-
getCrosstabColumnGroup
public JRBaseCrosstabColumnGroup getCrosstabColumnGroup(JRCrosstabColumnGroup group)
-
getCrosstabBucket
public JRBaseCrosstabBucket getCrosstabBucket(JRCrosstabBucket bucket)
-
getCrosstabMeasure
public JRBaseCrosstabMeasure getCrosstabMeasure(JRCrosstabMeasure measure)
-
visitCrosstab
public void visitCrosstab(JRCrosstab crosstab)
-
resolveCrosstabId
protected int resolveCrosstabId(JRCrosstab crosstab)
-
getDataset
public JRBaseDataset getDataset(JRDataset dataset)
-
getDatasetRun
public JRBaseDatasetRun getDatasetRun(JRDatasetRun datasetRun)
-
getCell
public JRBaseCellContents getCell(JRCellContents cell)
-
getCrosstabCell
public JRCrosstabCell getCrosstabCell(JRCrosstabCell cell)
-
getCrosstabParameter
public JRBaseCrosstabParameter getCrosstabParameter(JRCrosstabParameter parameter)
-
visitFrame
public void visitFrame(JRFrame frame)
-
getHyperlinkParameter
public JRHyperlinkParameter getHyperlinkParameter(JRHyperlinkParameter parameter)
-
getHyperlink
public JRHyperlink getHyperlink(JRHyperlink hyperlink)
-
getReportTemplate
public JRReportTemplate getReportTemplate(JRReportTemplate template)
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions(JRPropertyExpression[] props)
-
getPropertyExpression
public JRPropertyExpression getPropertyExpression(JRPropertyExpression propertyExpression)
-
getPropertyExpressions
public DatasetPropertyExpression[] getPropertyExpressions(DatasetPropertyExpression[] props)
-
getPropertyExpression
public DatasetPropertyExpression getPropertyExpression(DatasetPropertyExpression propertyExpression)
-
visitComponentElement
public void visitComponentElement(JRComponentElement componentElement)
Description copied from interface:JRVisitor
Visits a component wrapper element.- Parameters:
componentElement
- the element to visit
-
getGenericElementParameter
public JRGenericElementParameter getGenericElementParameter(JRGenericElementParameter elementParameter)
-
visitGenericElement
public void visitGenericElement(JRGenericElement element)
Description copied from interface:JRVisitor
Visits a generic report element.- Parameters:
element
- the element to visit
-
getMultiAxisData
public MultiAxisData getMultiAxisData(MultiAxisData data)
-
getMultiAxisDataset
public MultiAxisDataset getMultiAxisDataset(MultiAxisDataset dataset)
-
getElementDataset
public JRElementDataset getElementDataset(JRElementDataset dataset)
-
getDataAxisLevel
public DataAxisLevel getDataAxisLevel(DataAxisLevel level)
-
getDataLevelBucket
public DataLevelBucket getDataLevelBucket(DataLevelBucket bucket)
-
getDataMeasure
public DataMeasure getDataMeasure(DataMeasure measure)
-
getDataLevelBucketProperty
public DataLevelBucketProperty getDataLevelBucketProperty(DataLevelBucketProperty bucketProperty)
-
getCrosstabColumnCell
public CrosstabColumnCell getCrosstabColumnCell(CrosstabColumnCell cell)
-
-