|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.base.JRBaseGenericElementParameter
public class JRBaseGenericElementParameter
A read-only implementation of JRGenericElementParameter
that is included in compiled reports.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected boolean |
skipWhenEmpty
|
protected JRExpression |
valueExpression
|
Constructor Summary | |
---|---|
protected |
JRBaseGenericElementParameter()
|
|
JRBaseGenericElementParameter(JRGenericElementParameter parameter,
JRBaseObjectFactory factory)
Creates a generic element parameter by copying an existing instance. |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected JRExpression valueExpression
protected boolean skipWhenEmpty
Constructor Detail |
---|
protected JRBaseGenericElementParameter()
public JRBaseGenericElementParameter(JRGenericElementParameter parameter, JRBaseObjectFactory factory)
parameter
- the parameter to copyfactory
- the object factory to be used for creating sub objectsMethod Detail |
---|
public java.lang.String getName()
JRGenericElementParameter
The name will be propagated into the generic print element, as in
JRGenericPrintElement.setParameterValue(String, Object)
.
getName
in interface JRGenericElementParameter
public 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 JRGenericElementParameter
public boolean isSkipWhenEmpty()
JRGenericElementParameter
null
.
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 JRGenericElementParameter
null
public java.lang.Object clone()
clone
in interface JRCloneable
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |