public class JRBaseGenericElementParameter extends java.lang.Object implements JRGenericElementParameter, java.io.Serializable
JRGenericElementParameter
that is included in compiled reports.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.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 |
|---|---|
java.lang.Object |
clone() |
java.lang.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 java.lang.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 java.lang.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 java.lang.Object clone()
clone in interface JRCloneableclone in class java.lang.Object© 2001-2010 Jaspersoft Corporation www.jaspersoft.com