Package net.sf.jasperreports.engine.base
Class JRBaseGenericElementParameter
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseGenericElementParameter
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,JRCloneable,JRGenericElementParameter
- Direct Known Subclasses:
JRDesignGenericElementParameter
public class JRBaseGenericElementParameter extends java.lang.Object implements JRGenericElementParameter, java.io.Serializable
A read-only implementation ofJRGenericElementParameterthat is included in compiled reports.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringnameprotected booleanskipWhenEmptyprotected JRExpressionvalueExpression
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRBaseGenericElementParameter()JRBaseGenericElementParameter(JRGenericElementParameter parameter, JRBaseObjectFactory factory)Creates a generic element parameter by copying an existing instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()java.lang.StringgetName()Returns the name of the parameter.JRExpressiongetValueExpression()Returns the expression that provides parameter values.booleanisSkipWhenEmpty()Decides whether the parameter is skipped when its value evaluates tonull.
-
-
-
Field Detail
-
name
protected java.lang.String name
-
valueExpression
protected JRExpression valueExpression
-
skipWhenEmpty
protected boolean skipWhenEmpty
-
-
Constructor Detail
-
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 Detail
-
getName
public java.lang.String 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
public JRExpression 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
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object
-
-