public class JRBaseVariable extends Object implements JRVariable, Serializable, StoreCloneable<JRBaseVariable>, JRChangeEventsSupport
Modifier and Type | Field and Description |
---|---|
protected CalculationEnum |
calculationValue |
protected String |
description |
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 |
static String |
PROPERTY_DESCRIPTION |
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() |
JRBaseVariable |
clone(CloneStore cloneStore) |
CalculationEnum |
getCalculationValue()
Gets the variable calculation type.
|
String |
getDescription()
Gets the variable optional description.
|
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
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. |
void |
setDescription(String description)
Sets the variable description.
|
public static final String PROPERTY_DESCRIPTION
protected String name
protected String description
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()
JRVariable
getName
in interface JRVariable
public String getDescription()
JRVariable
getDescription
in interface JRVariable
public void setDescription(String description)
JRVariable
setDescription
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 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 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 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 clone()
clone
in interface JRCloneable
clone
in class Object
public JRBaseVariable clone(CloneStore cloneStore)
clone
in interface StoreCloneable<JRBaseVariable>
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport
in interface JRChangeEventsSupport
Copyright © 2019 TIBCO Software Inc.. All rights reserved.