public class JRFillVariable extends Object implements JRVariable, JRCalculable
Modifier and Type | Field and Description |
---|---|
protected JRVariable |
parent |
COLUMN_COUNT, COLUMN_NUMBER, MASTER_CURRENT_PAGE, MASTER_TOTAL_PAGES, PAGE_COUNT, PAGE_NUMBER, REPORT_COUNT
HELPER_COUNT, HELPER_SIZE, HELPER_SUM, HELPER_VARIANCE
Modifier | Constructor and Description |
---|---|
protected |
JRFillVariable(JRVariable variable,
JRFillObjectFactory factory) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
CalculationEnum |
getCalculationValue()
Gets the variable calculation type.
|
Object |
getEstimatedValue() |
JRExpression |
getExpression()
Returns the main expression for this variable.
|
JRCalculable |
getHelperVariable(byte type)
Returns a helper variable.
|
Object |
getIncrementedValue()
Returns the incremented value of the calculable object.
|
JRIncrementer |
getIncrementer() |
Class<?> |
getIncrementerFactoryClass()
Returns the class of the incrementer factory used for choosing the right incrementer for the variable value.
|
String |
getIncrementerFactoryClassName()
Returns the string name of the variable value class.
|
JRGroup |
getIncrementGroup()
Returns the group whose break triggers the variable increment.
|
IncrementTypeEnum |
getIncrementTypeValue()
Gets the variable increment type.
|
JRExpression |
getInitialValueExpression()
Returns the initial value expression for this variable.
|
String |
getName()
Returns the name of the variable.
|
Object |
getOldValue() |
Object |
getPreviousOldValue() |
JRGroup |
getResetGroup()
Returns the group whose break triggers the variable reset.
|
ResetTypeEnum |
getResetTypeValue()
Gets the variable reset type.
|
Object |
getValue()
Returns the value of the calculable object.
|
Object |
getValue(byte evaluation) |
Class<?> |
getValueClass()
Returns the class of the variable value.
|
String |
getValueClassName()
Returns the string name of the variable value class.
|
boolean |
isInitialized()
Returns
true if and only if the calculable object was only initialized and not incremented. |
boolean |
isSystemDefined()
Returns
true if the variable calculation type is system defined. |
void |
overwriteValue(Object newValue,
byte evaluation) |
protected void |
reset() |
void |
restoreValue(byte evaluation) |
void |
setEstimatedValue(Object estimatedValue) |
JRFillVariable |
setHelperVariable(JRFillVariable helperVariable,
byte type)
Sets a helper variable.
|
void |
setIncrementedValue(Object incrementedValue) |
void |
setInitialized(boolean isInitialized)
Sets the initialized flag for this calculable object.
|
void |
setOldValue(Object oldValue) |
void |
setPreviousOldValue(Object previousOldValue) |
void |
setValue(Object value) |
protected JRVariable parent
protected JRFillVariable(JRVariable variable, JRFillObjectFactory factory)
protected void reset()
public String getName()
JRVariable
getName
in interface JRVariable
public Class<?> getValueClass()
JRVariable
getValueClass
in interface JRVariable
public String getValueClassName()
JRVariable
getValueClassName
in interface JRVariable
public Class<?> getIncrementerFactoryClass()
JRVariable
getIncrementerFactoryClass
in interface JRVariable
JRIncrementer
,
JRIncrementerFactory
public String getIncrementerFactoryClassName()
JRVariable
getIncrementerFactoryClassName
in interface JRVariable
public JRExpression getExpression()
JRVariable
getExpression
in interface JRVariable
JRExpression
instance containing the expression.public JRExpression getInitialValueExpression()
JRVariable
getInitialValueExpression
in interface JRVariable
JRExpression
instance containing the initial expression.public ResetTypeEnum getResetTypeValue()
JRVariable
getResetTypeValue
in interface JRVariable
ResetTypeEnum
public IncrementTypeEnum getIncrementTypeValue()
JRVariable
getIncrementTypeValue
in interface JRVariable
IncrementTypeEnum
public CalculationEnum getCalculationValue()
JRVariable
getCalculationValue
in interface JRVariable
CalculationEnum
public boolean isSystemDefined()
JRVariable
true
if the variable calculation type is system defined.isSystemDefined
in interface JRVariable
CalculationEnum.SYSTEM
public JRGroup getResetGroup()
JRVariable
JRVariable.getResetTypeValue()
returns
ResetTypeEnum.GROUP
.getResetGroup
in interface JRVariable
public JRGroup getIncrementGroup()
JRVariable
JRVariable.getIncrementTypeValue()
returns
IncrementTypeEnum.GROUP
.getIncrementGroup
in interface JRVariable
public Object getOldValue()
public void setOldValue(Object oldValue)
public Object getEstimatedValue()
public void setEstimatedValue(Object estimatedValue)
public Object getIncrementedValue()
JRCalculable
getIncrementedValue
in interface JRCalculable
public void setIncrementedValue(Object incrementedValue)
public Object getValue()
JRCalculable
getValue
in interface JRCalculable
public void setValue(Object value)
public boolean isInitialized()
JRCalculable
true
if and only if the calculable object was only initialized and not incremented.isInitialized
in interface JRCalculable
true
if and only if the calculable object was only initialized and not incrementedpublic void setInitialized(boolean isInitialized)
JRCalculable
setInitialized
in interface JRCalculable
isInitialized
- the initialized flagJRCalculable.isInitialized()
public JRIncrementer getIncrementer()
public JRFillVariable setHelperVariable(JRFillVariable helperVariable, byte type)
helperVariable
- the helper variabletype
- the helper typepublic JRCalculable getHelperVariable(byte type)
getHelperVariable
in interface JRCalculable
type
- the helper typepublic Object getValue(byte evaluation)
public void overwriteValue(Object newValue, byte evaluation)
public void restoreValue(byte evaluation)
public Object getPreviousOldValue()
public void setPreviousOldValue(Object previousOldValue)
public Object clone()
clone
in interface JRCloneable
clone
in class Object
Copyright © 2017. All rights reserved.