public class JRBaseGenericElementParameter extends Object implements JRGenericElementParameter, Serializable
JRGenericElementParameter
that is included in compiled reports.| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected boolean |
skipWhenEmpty |
protected JRExpression |
valueExpression |
| Modifier | Constructor and Description |
|---|---|
protected |
JRBaseGenericElementParameter() |
|
JRBaseGenericElementParameter(JRGenericElementParameter parameter,
JRBaseObjectFactory factory)
Creates a generic element parameter by copying an existing instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
String |
getName()
Returns the name of the parameter.
|
JRExpression |
getValueExpression()
Returns the expression that provides parameter values.
|
boolean |
isSkipWhenEmpty()
Decides whether the parameter is skipped when its value evaluates to
null. |
protected String name
protected JRExpression valueExpression
protected boolean skipWhenEmpty
protected JRBaseGenericElementParameter()
public JRBaseGenericElementParameter(JRGenericElementParameter parameter, JRBaseObjectFactory factory)
parameter - the parameter to copyfactory - the object factory to be used for creating sub objectspublic String getName()
JRGenericElementParameter
The name will be propagated into the generic print element, as in
JRGenericPrintElement.setParameterValue(String, Object).
getName in interface JRGenericElementParameterpublic JRExpression getValueExpression()
JRGenericElementParameter
The result of the expression evaluation will be propagated into the
generic print element as parameter value, as in
JRGenericPrintElement.setParameterValue(String, Object).
getValueExpression in interface JRGenericElementParameterpublic boolean isSkipWhenEmpty()
JRGenericElementParameternull.
When the parameter's expression evaluates to null and 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 a
null value.
isSkipWhenEmpty in interface JRGenericElementParameternullpublic Object clone()
clone in interface JRCloneableclone in class ObjectCopyright © 2017. All rights reserved.