public class JRFillVariable extends java.lang.Object implements JRVariable, JRCalculable
| Modifier and Type | Field and Description |
|---|---|
protected JRVariable |
parent |
COLUMN_COUNT, COLUMN_NUMBER, PAGE_COUNT, PAGE_NUMBER, REPORT_COUNTHELPER_COUNT, HELPER_SIZE, HELPER_SUM, HELPER_VARIANCE| Modifier | Constructor and Description |
|---|---|
protected |
JRFillVariable(JRVariable variable,
JRFillObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
CalculationEnum |
getCalculationValue()
Gets the variable calculation type.
|
java.lang.Object |
getEstimatedValue() |
JRExpression |
getExpression()
Returns the main expression for this variable.
|
JRCalculable |
getHelperVariable(byte type)
Returns a helper variable.
|
java.lang.Object |
getIncrementedValue()
Returns the incremented value of the calculable object.
|
JRIncrementer |
getIncrementer() |
java.lang.Class<?> |
getIncrementerFactoryClass()
Returns the class of the incrementer factory used for choosing the right incrementer for the variable value.
|
java.lang.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.
|
java.lang.String |
getName()
Returns the name of the variable.
|
java.lang.Object |
getOldValue() |
java.lang.Object |
getPreviousOldValue() |
JRGroup |
getResetGroup()
Returns the group whose break triggers the variable reset.
|
ResetTypeEnum |
getResetTypeValue()
Gets the variable reset type.
|
java.lang.Object |
getValue()
Returns the value of the calculable object.
|
java.lang.Object |
getValue(byte evaluation) |
java.lang.Class<?> |
getValueClass()
Returns the class of the variable value.
|
java.lang.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(java.lang.Object newValue,
byte evaluation) |
protected void |
reset() |
void |
restoreValue(byte evaluation) |
void |
setEstimatedValue(java.lang.Object estimatedValue) |
JRFillVariable |
setHelperVariable(JRFillVariable helperVariable,
byte type)
Sets a helper variable.
|
void |
setIncrementedValue(java.lang.Object incrementedValue) |
void |
setInitialized(boolean isInitialized)
Sets the initialized flag for this calculable object.
|
void |
setOldValue(java.lang.Object oldValue) |
void |
setPreviousOldValue(java.lang.Object previousOldValue) |
void |
setValue(java.lang.Object value) |
protected JRVariable parent
protected JRFillVariable(JRVariable variable, JRFillObjectFactory factory)
protected void reset()
public java.lang.String getName()
JRVariablegetName in interface JRVariablepublic java.lang.Class<?> getValueClass()
JRVariablegetValueClass in interface JRVariablepublic java.lang.String getValueClassName()
JRVariablegetValueClassName in interface JRVariablepublic java.lang.Class<?> getIncrementerFactoryClass()
JRVariablegetIncrementerFactoryClass in interface JRVariableJRIncrementer,
JRIncrementerFactorypublic java.lang.String getIncrementerFactoryClassName()
JRVariablegetIncrementerFactoryClassName in interface JRVariablepublic JRExpression getExpression()
JRVariablegetExpression in interface JRVariableJRExpression instance containing the expression.public JRExpression getInitialValueExpression()
JRVariablegetInitialValueExpression in interface JRVariableJRExpression instance containing the initial expression.public ResetTypeEnum getResetTypeValue()
JRVariablegetResetTypeValue in interface JRVariableResetTypeEnumpublic IncrementTypeEnum getIncrementTypeValue()
JRVariablegetIncrementTypeValue in interface JRVariableIncrementTypeEnumpublic CalculationEnum getCalculationValue()
JRVariablegetCalculationValue in interface JRVariableCalculationEnumpublic boolean isSystemDefined()
JRVariabletrue if the variable calculation type is system defined.isSystemDefined in interface JRVariableCalculationEnum.SYSTEMpublic JRGroup getResetGroup()
JRVariableJRVariable.getResetTypeValue() returns
ResetTypeEnum.GROUP.getResetGroup in interface JRVariablepublic JRGroup getIncrementGroup()
JRVariableJRVariable.getIncrementTypeValue() returns
ResetTypeEnum.GROUP.getIncrementGroup in interface JRVariablepublic java.lang.Object getOldValue()
public void setOldValue(java.lang.Object oldValue)
public java.lang.Object getEstimatedValue()
public void setEstimatedValue(java.lang.Object estimatedValue)
public java.lang.Object getIncrementedValue()
JRCalculablegetIncrementedValue in interface JRCalculablepublic void setIncrementedValue(java.lang.Object incrementedValue)
public java.lang.Object getValue()
JRCalculablegetValue in interface JRCalculablepublic void setValue(java.lang.Object value)
public boolean isInitialized()
JRCalculabletrue if and only if the calculable object was only initialized and not incremented.isInitialized in interface JRCalculabletrue if and only if the calculable object was only initialized and not incrementedpublic void setInitialized(boolean isInitialized)
JRCalculablesetInitialized in interface JRCalculableisInitialized - 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 JRCalculabletype - the helper typepublic java.lang.Object getValue(byte evaluation)
public void overwriteValue(java.lang.Object newValue,
byte evaluation)
public void restoreValue(byte evaluation)
public java.lang.Object getPreviousOldValue()
public void setPreviousOldValue(java.lang.Object previousOldValue)
public java.lang.Object clone()
clone in interface JRCloneableclone in class java.lang.Object© 2001-2010 Jaspersoft Corporation www.jaspersoft.com