public class JRBaseVariable extends Object implements JRVariable, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected CalculationEnum |
calculationValue |
protected JRExpression |
expression |
protected Class<?> |
incrementerFactoryClass |
protected String |
incrementerFactoryClassName |
protected String |
incrementerFactoryClassRealName |
protected JRGroup |
incrementGroup |
protected IncrementTypeEnum |
incrementTypeValue |
protected JRExpression |
initialValueExpression |
protected boolean |
isSystemDefined |
protected String |
name |
protected JRGroup |
resetGroup |
protected ResetTypeEnum |
resetTypeValue |
protected Class<?> |
valueClass |
protected String |
valueClassName |
protected String |
valueClassRealName |
COLUMN_COUNT, COLUMN_NUMBER, MASTER_CURRENT_PAGE, MASTER_TOTAL_PAGES, PAGE_COUNT, PAGE_NUMBER, REPORT_COUNT| Modifier | Constructor and Description |
|---|---|
protected |
JRBaseVariable() |
protected |
JRBaseVariable(JRVariable variable,
JRBaseObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
CalculationEnum |
getCalculationValue()
Gets the variable calculation type.
|
JRExpression |
getExpression()
Returns the main expression for this variable.
|
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.
|
JRGroup |
getResetGroup()
Returns the group whose break triggers the variable reset.
|
ResetTypeEnum |
getResetTypeValue()
Gets the variable reset type.
|
Class<?> |
getValueClass()
Returns the class of the variable value.
|
String |
getValueClassName()
Returns the string name of the variable value class.
|
boolean |
isSystemDefined()
Returns
true if the variable calculation type is system defined. |
protected String name
protected String valueClassName
protected String valueClassRealName
protected String incrementerFactoryClassName
protected String incrementerFactoryClassRealName
protected ResetTypeEnum resetTypeValue
protected IncrementTypeEnum incrementTypeValue
protected CalculationEnum calculationValue
protected boolean isSystemDefined
protected transient Class<?> valueClass
protected transient Class<?> incrementerFactoryClass
protected JRExpression expression
protected JRExpression initialValueExpression
protected JRGroup resetGroup
protected JRGroup incrementGroup
protected JRBaseVariable()
protected JRBaseVariable(JRVariable variable, JRBaseObjectFactory factory)
public String getName()
JRVariablegetName in interface JRVariablepublic Class<?> getValueClass()
JRVariablegetValueClass in interface JRVariablepublic String getValueClassName()
JRVariablegetValueClassName in interface JRVariablepublic Class<?> getIncrementerFactoryClass()
JRVariablegetIncrementerFactoryClass in interface JRVariableJRIncrementer,
JRIncrementerFactorypublic String getIncrementerFactoryClassName()
JRVariablegetIncrementerFactoryClassName in interface JRVariablepublic 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 JRExpression getExpression()
JRVariablegetExpression in interface JRVariableJRExpression instance containing the expression.public JRExpression getInitialValueExpression()
JRVariablegetInitialValueExpression in interface JRVariableJRExpression instance containing the initial expression.public JRGroup getResetGroup()
JRVariableJRVariable.getResetTypeValue() returns
ResetTypeEnum.GROUP.getResetGroup in interface JRVariablepublic JRGroup getIncrementGroup()
JRVariableJRVariable.getIncrementTypeValue() returns
IncrementTypeEnum.GROUP.getIncrementGroup in interface JRVariablepublic Object clone()
clone in interface JRCloneableclone in class ObjectCopyright © 2017. All rights reserved.