Package net.sf.jasperreports.engine.fill
Class JRRecordedValues
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRRecordedValues
-
- All Implemented Interfaces:
Serializable
public class JRRecordedValues extends Object implements Serializable
Recorded values container used by elements withAuto evaluation time.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JRRecordedValues(Set<JREvaluationTime> evaluationTimes)Creates a recorded values set.JRRecordedValues(Set<JREvaluationTime> evaluationTimes, Map<String,Object> recordedFieldValues, Map<String,Object> recordedVariableValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoneEvaluation(JREvaluationTime evaluationTime)Marks an evaluation time as done.booleanfinishedEvaluations()Decides whether all required evaluations are done.Set<JREvaluationTime>getEvaluationTimes()Map<String,Object>getRecordedFieldValues()Returns the recorded field values indexed by field name.Map<String,Object>getRecordedVariableValues()Returns the recorded variable values indexed by variable name.booleanlastEvaluationTime()Decides whether this is the last evaluation time.voidrecordFieldValue(String fieldName, Object value)Records a field value.voidrecordVariableValue(String variableName, Object value)Records a variable value.
-
-
-
Constructor Detail
-
JRRecordedValues
public JRRecordedValues(Set<JREvaluationTime> evaluationTimes)
Creates a recorded values set.- Parameters:
evaluationTimes- future times when the values will be recorded
-
-
Method Detail
-
getEvaluationTimes
public Set<JREvaluationTime> getEvaluationTimes()
-
doneEvaluation
public void doneEvaluation(JREvaluationTime evaluationTime)
Marks an evaluation time as done.- Parameters:
evaluationTime- the evaluation time
-
lastEvaluationTime
public boolean lastEvaluationTime()
Decides whether this is the last evaluation time.- Returns:
- whether this is the last evaluation time
-
finishedEvaluations
public boolean finishedEvaluations()
Decides whether all required evaluations are done.- Returns:
- whether all required evaluations are done
-
recordVariableValue
public void recordVariableValue(String variableName, Object value)
Records a variable value.- Parameters:
variableName- the variable namevalue- the variable value to record
-
recordFieldValue
public void recordFieldValue(String fieldName, Object value)
Records a field value.- Parameters:
fieldName- the field namevalue- the field value to record
-
getRecordedVariableValues
public Map<String,Object> getRecordedVariableValues()
Returns the recorded variable values indexed by variable name.- Returns:
- the recorded variable values
-
-