Package com.stimulsoft.report.dictionary
Class StiVariable
java.lang.Object
com.stimulsoft.report.expressions.StiExpression
com.stimulsoft.report.dictionary.StiVariable
- All Implemented Interfaces:
IStiDefault,IStiJsonReportObject,IStiSerializable,IStiSerializableToString,IStiName,ICloneable,IStiAlias,IStiInherited,Cloneable,Comparable<StiVariable>
public class StiVariable
extends StiExpression
implements IStiName, IStiInherited, Comparable<StiVariable>, IStiAlias, ICloneable
Class describes variable.
-
Field Summary
FieldsFields inherited from class com.stimulsoft.report.expressions.StiExpression
ParentComponent, value -
Constructor Summary
ConstructorsConstructorDescriptionCreates an object of the type StiVariable.StiVariable(String category) Creates an object of the type StiVariable.StiVariable(String name, StiSystemType type) Creates an object of the type StiVariable.StiVariable(String name, Object value) Creates an object of the type StiVariable.StiVariable(String category, String name, StiSystemType type) Creates an object of the type StiVariable.StiVariable(String category, String name, StiSystemType type, String value, boolean readOnly) Creates an object of the type StiVariable.StiVariable(String category, String name, Object value) Creates an object of the type StiVariable.StiVariable(String category, String name, String alias, StiSystemType type, String value, boolean readOnly) Creates an object of the type StiVariable.StiVariable(String category, String name, String alias, StiSystemType type, String value, boolean readOnly, StiVariableInitBy initBy) Creates an object of the type StiVariable.StiVariable(String category, String name, String alias, Object value) Creates an object of the type StiVariable.StiVariable(String category, String name, String alias, Object value, boolean readOnly) StiVariable(String category, String name, String alias, String description, StiSystemType type, String value, boolean readOnly) Creates an object of the type StiVariable.StiVariable(String category, String name, String alias, String description, StiSystemType type, String value, boolean readOnly, StiVariableInitBy initBy) Creates an object of the type StiVariable.StiVariable(String category, String name, String alias, String description, StiSystemType type, String value, boolean readOnly, StiVariableInitBy initBy, boolean requestFromUser) Creates an object of the type StiVariable.StiVariable(String category, String name, String alias, String description, StiSystemType type, String value, boolean readOnly, StiVariableInitBy initBy, boolean requestFromUser, StiDialogInfo dialogInfo) Creates an object of the type StiVariable. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a copy of the current instance.intcompareTo(StiVariable var2) voiddeserialize(String strObject) final StringgetAlias()Gets or sets alias of variable.booleanfinal StringGets or sets category of the variable.static DateGetDateTimeFromValue(String value) Internal use only.final StringGets or sets description of function.final StiDialogInfoGets or sets alias of variable.static StringGetExpressionString(StiVariable variable) Returns variable in the form of the expression.final booleanfinal StiVariableInitByGets or sets value which indicates that this variable will be have defalt value based on calculation of expression which specified in Value property or based on default value.final StringGets or sets init by expression for range values.final StringGets or sets init by expression for range values.getInitInstance(StiText tempText) final booleangetItemObject(String text) getKey()final StringgetName()Gets or sets name of variable.Internal use only.final booleanGets or sets value indicates which variable instanceof read only.final booleanGets or sets value.final StiSystemTypefinal StiSystemTypeEnumgetType()Gets or sets type of variable.getValue()Gets or sets value of the expression.final ObjectbooleanbooleanbooleanbooleanbooleanbooleanisList()booleanbooleanisRange()booleanbooleanisTime()booleanvoidLoadFromJsonObjectEx(JSONObject jObject, StiReport report) final voidvoidsetAllowNullableString(boolean allowNullableString) voidsetAllowUseAsSqlParameter(boolean allowUseAsSqlParameter) final voidsetCategory(String value) final voidsetDescription(String value) final voidsetDialogInfo(StiDialogInfo value) final voidfinal voidsetInherited(boolean value) final voidsetInitBy(StiVariableInitBy value) final voidsetInitByExpressionFrom(String value) final voidsetInitByExpressionTo(String value) voidfinal voidfinal voidsetReadOnly(boolean value) final voidsetRequestFromUser(boolean value) voidsetSelection(StiSelectionMode selection) final voidsetShowOnParametersPanel(boolean value) voidsetSystemType(StiSystemType systemType) voidsetTypeOrUserType(String systemTypeName) voidfinal voidsetValueObject(Object value) toString()Methods inherited from class com.stimulsoft.report.expressions.StiExpression
deserializeStr, getDefaultEvent, getFullConvert, getGenAddEvent, LoadFromJsonObject, SaveToJsonObject, setValue
-
Field Details
-
name
-
-
Constructor Details
-
StiVariable
public StiVariable()Creates an object of the type StiVariable. -
StiVariable
Creates an object of the type StiVariable. In this case creates the category. -
StiVariable
Creates an object of the type StiVariable. -
StiVariable
Creates an object of the type StiVariable. -
StiVariable
Creates an object of the type StiVariable. -
StiVariable
Creates an object of the type StiVariable. -
StiVariable
Creates an object of the type StiVariable. -
StiVariable
-
StiVariable
public StiVariable(String category, String name, StiSystemType type, String value, boolean readOnly) Creates an object of the type StiVariable. -
StiVariable
public StiVariable(String category, String name, String alias, StiSystemType type, String value, boolean readOnly) Creates an object of the type StiVariable. -
StiVariable
public StiVariable(String category, String name, String alias, String description, StiSystemType type, String value, boolean readOnly) Creates an object of the type StiVariable. -
StiVariable
public StiVariable(String category, String name, String alias, StiSystemType type, String value, boolean readOnly, StiVariableInitBy initBy) Creates an object of the type StiVariable. -
StiVariable
public StiVariable(String category, String name, String alias, String description, StiSystemType type, String value, boolean readOnly, StiVariableInitBy initBy) Creates an object of the type StiVariable. -
StiVariable
public StiVariable(String category, String name, String alias, String description, StiSystemType type, String value, boolean readOnly, StiVariableInitBy initBy, boolean requestFromUser) Creates an object of the type StiVariable. -
StiVariable
public StiVariable(String category, String name, String alias, String description, StiSystemType type, String value, boolean readOnly, StiVariableInitBy initBy, boolean requestFromUser, StiDialogInfo dialogInfo) Creates an object of the type StiVariable.- Parameters:
category- Category of the variable.name- Name of variable.alias- Alias of variable.description- Description of variable.type- Type of variable.value- Value of variable.readOnly- Value indicates which varibale instanceof read only.initBy- Value which indicates that this variable will be have defalt value based on calculation of expression which specified in Value property or based on default value.requestFromUser- RequestFromUser of variable.dialogInfo- StiDialogInfo contain dialog information for using RequestFromUser property of variable.
-
-
Method Details
-
getInherited
public final boolean getInherited()- Specified by:
getInheritedin interfaceIStiInherited
-
setInherited
public final void setInherited(boolean value) - Specified by:
setInheritedin interfaceIStiInherited
-
getName
Gets or sets name of variable. -
setName
-
getApplyFormat
public boolean getApplyFormat()- Overrides:
getApplyFormatin classStiExpression
-
getDialogInfo
Gets or sets alias of variable. -
setDialogInfo
-
getAlias
Gets or sets alias of variable. -
setAlias
-
isAllowNullableString
public boolean isAllowNullableString() -
setAllowNullableString
public void setAllowNullableString(boolean allowNullableString) -
getType
Gets or sets type of variable. -
getSystemType
-
getReadOnly
public final boolean getReadOnly()Gets or sets value indicates which variable instanceof read only. -
setReadOnly
public final void setReadOnly(boolean value) -
getRequestFromUser
public final boolean getRequestFromUser()Gets or sets value. -
setRequestFromUser
public final void setRequestFromUser(boolean value) -
isShowOnParametersPanel
public boolean isShowOnParametersPanel() -
setShowOnParametersPanel
public final void setShowOnParametersPanel(boolean value) -
getCategory
Gets or sets category of the variable. -
setCategory
-
getDescription
Gets or sets description of function. -
setDescription
-
getIsCategory
public final boolean getIsCategory() -
getValueObject
-
getItemObject
-
setValueObject
-
getValue
Description copied from class:StiExpressionGets or sets value of the expression.- Overrides:
getValuein classStiExpression
-
getInitByExpressionFrom
Gets or sets init by expression for range values. This instanceof expression for From part of range. Property can be used only for Range types! -
setInitByExpressionFrom
-
getInitByExpressionTo
Gets or sets init by expression for range values. This instanceof expression for To part of range. Property can be used only for Range types! -
setInitByExpressionTo
-
getInitBy
Gets or sets value which indicates that this variable will be have defalt value based on calculation of expression which specified in Value property or based on default value. -
setInitBy
-
GetDateTimeFromValue
Internal use only. -
GetExpressionString
Returns variable in the form of the expression.- Parameters:
variable- Variable for convertation.- Returns:
- Converted expression.
-
serialize
- Specified by:
serializein interfaceIStiSerializableToString- Overrides:
serializein classStiExpression
-
deserialize
- Specified by:
deserializein interfaceIStiSerializableToString- Overrides:
deserializein classStiExpression
-
setTypeOrUserType
-
isValueType
public boolean isValueType() -
getInstance
-
isRange
public boolean isRange() -
isList
public boolean isList() -
isTime
public boolean isTime() -
isDecimal
public boolean isDecimal() -
isInteger
public boolean isInteger() -
isNullable
public boolean isNullable() -
getInitInstance
-
setDialogInfoItems
-
getDialogInfoItems
-
compareTo
- Specified by:
compareToin interfaceComparable<StiVariable>
-
clone
Description copied from class:StiExpressionCreates a new object that is a copy of the current instance.- Specified by:
clonein interfaceICloneable- Overrides:
clonein classStiExpression- Returns:
- A new object that is a copy of this instance.
-
toString
- Overrides:
toStringin classStiExpression
-
setSystemType
- Parameters:
systemType- the systemType to set
-
setValue
-
getKey
- Returns:
- the key
-
setKey
- Parameters:
key- the key to set
-
isAllowUseAsSqlParameter
public boolean isAllowUseAsSqlParameter()- Returns:
- the allowUseAsSqlParameter
-
setAllowUseAsSqlParameter
public void setAllowUseAsSqlParameter(boolean allowUseAsSqlParameter) - Parameters:
allowUseAsSqlParameter- the allowUseAsSqlParameter to set
-
getSelection
- Returns:
- the selection
-
setSelection
- Parameters:
selection- the selection to set
-
SaveToJsonObjectEx
- Throws:
JSONException
-
LoadFromJsonObjectEx
- Throws:
JSONException
-
eval
- Throws:
StiException
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceIStiDefault- Overrides:
isDefaultin classStiExpression
-
getNativeValue
Internal use only.- Returns:
-