Package net.sf.jasperreports.engine.base
Class JRBaseGenericElementParameter
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseGenericElementParameter
- All Implemented Interfaces:
Serializable,Cloneable,JRCloneable,JRGenericElementParameter
- Direct Known Subclasses:
JRDesignGenericElementParameter
public class JRBaseGenericElementParameter
extends Object
implements JRGenericElementParameter, Serializable
A read-only implementation of
JRGenericElementParameter
that is included in compiled reports.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJRBaseGenericElementParameter(JRGenericElementParameter parameter, JRBaseObjectFactory factory) Creates a generic element parameter by copying an existing instance. -
Method Summary
-
Field Details
-
name
-
valueExpression
-
skipWhenEmpty
protected boolean skipWhenEmpty
-
-
Constructor Details
-
JRBaseGenericElementParameter
protected JRBaseGenericElementParameter() -
JRBaseGenericElementParameter
public JRBaseGenericElementParameter(JRGenericElementParameter parameter, JRBaseObjectFactory factory) Creates a generic element parameter by copying an existing instance.- Parameters:
parameter- the parameter to copyfactory- the object factory to be used for creating sub objects
-
-
Method Details
-
getName
Description copied from interface:JRGenericElementParameterReturns the name of the parameter.The name will be propagated into the generic print element, as in
JRGenericPrintElement.setParameterValue(String, Object).- Specified by:
getNamein interfaceJRGenericElementParameter- Returns:
- the name of the parameter
-
getValueExpression
Description copied from interface:JRGenericElementParameterReturns the expression that provides parameter values.The result of the expression evaluation will be propagated into the generic print element as parameter value, as in
JRGenericPrintElement.setParameterValue(String, Object).- Specified by:
getValueExpressionin interfaceJRGenericElementParameter- Returns:
- the parameter's value expression
-
isSkipWhenEmpty
public boolean isSkipWhenEmpty()Description copied from interface:JRGenericElementParameterDecides whether the parameter is skipped when its value evaluates tonull.When the parameter's expression evaluates to
nulland this flag is set and , the parameter is not included in the generated print element. If the flag is not set, the parameter is included with anullvalue.- Specified by:
isSkipWhenEmptyin interfaceJRGenericElementParameter- Returns:
- whether the parameter is skipped when its value is
null
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-