com.stimulsoft.report.expressions
Class StiExpression

java.lang.Object
  extended by com.stimulsoft.report.expressions.StiExpression
All Implemented Interfaces:
IStiDefault, IStiJsonReportObject, IStiSerializable, IStiSerializableToString, java.lang.Cloneable
Direct Known Subclasses:
StiArgumentExpression, StiCrossValueExpression, StiCutPieListExpression, StiDataParameter, StiDisplayCrossValueExpression, StiListOfArgumentsExpression, StiListOfHyperlinksExpression, StiListOfTagsExpression, StiListOfToolTipsExpression, StiListOfValuesCloseExpression, StiListOfValuesEndExpression, StiListOfValuesExpression, StiListOfValuesHighExpression, StiListOfValuesLowExpression, StiListOfValuesOpenExpression, StiListOfWeightsExpression, StiSkipIndicesExpression, StiSkipValuesExpression, StiTextExpression, StiTitleExpression, StiUnifiedExpression, StiValueCloseExpression, StiValueEndExpression, StiValueExpression, StiValueHighExpression, StiValueLowExpression, StiValueOpenExpression, StiVariable

public class StiExpression
extends java.lang.Object
implements IStiSerializable, IStiSerializableToString, java.lang.Cloneable, IStiDefault, IStiJsonReportObject

Describes class that contains an expression.


Field Summary
 StiComponent ParentComponent
           
 
Constructor Summary
StiExpression()
          Creates a new expression.
StiExpression(java.lang.String value)
          Creates a new expression.
 
Method Summary
 java.lang.Object clone()
          Creates a new object that is a copy of the current instance.
 void deserialize(java.lang.String strObject)
          Десериализация объекта из строки.
 void deserializeStr(java.lang.String value)
           
 boolean getApplyFormat()
           
 StiEvent getDefaultEvent()
          Returns the event for processing of expression when genertion of the report script.
 boolean getFullConvert()
          Gets value, indicates that the value is to be a string.
 boolean getGenAddEvent()
          Gets value, indicates that it is necessary to add methods of getting the expression value to the event handler.
 java.lang.String getValue()
          Gets or sets value of the expression.
 boolean isDefault()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ParentComponent

public StiComponent ParentComponent
Constructor Detail

StiExpression

public StiExpression()
Creates a new expression.


StiExpression

public StiExpression(java.lang.String value)
Creates a new expression.

Parameters:
val - Gets or sets the expression value.
Method Detail

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Specified by:
SaveToJsonObject in interface IStiJsonReportObject
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in interface IStiJsonReportObject
Throws:
JSONException

getValue

public java.lang.String getValue()
Gets or sets value of the expression.


setValue

public void setValue(java.lang.String value)

getFullConvert

public boolean getFullConvert()
Gets value, indicates that the value is to be a string.


getApplyFormat

public boolean getApplyFormat()

getGenAddEvent

public boolean getGenAddEvent()
Gets value, indicates that it is necessary to add methods of getting the expression value to the event handler.


getDefaultEvent

public StiEvent getDefaultEvent()
Returns the event for processing of expression when genertion of the report script.

Returns:
Event for expression processing.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Creates a new object that is a copy of the current instance.

Overrides:
clone in class java.lang.Object
Returns:
A new object that is a copy of this instance.

serialize

public java.lang.String serialize()
Description copied from interface: IStiSerializableToString
Сериализация объекта в строку.

Specified by:
serialize in interface IStiSerializableToString
Returns:
строковое представление объекта

deserialize

public void deserialize(java.lang.String strObject)
Description copied from interface: IStiSerializableToString
Десериализация объекта из строки. Все свойства объекта устанавливаются за счет распарсивания строки.

Specified by:
deserialize in interface IStiSerializableToString

deserializeStr

public void deserializeStr(java.lang.String value)

isDefault

public boolean isDefault()
Specified by:
isDefault in interface IStiDefault