|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.formulacompiler.runtime.Computation.Config
public static final class Computation.Config
Provides configuration information for an execution environment for computations.
Please refer to the tutorial for details.
Field Summary | |
---|---|
CellComputationListener |
cellComputationListener
This listener is invoked when a cell value is computed. |
java.nio.charset.Charset |
charset
Charset, which is used in CHAR and CODE functions. |
java.text.DecimalFormatSymbols |
decimalFormatSymbols
A set of symbols (such as the decimal separator, the grouping separator, and so on) needed to format numbers. |
java.util.Locale |
locale
Locale to use for, for example, labelling weekdays and months. |
java.util.TimeZone |
timeZone
Time zone to use to, for example, convert spreadsheet-internal numeric dates to Date . |
Constructor Summary | |
---|---|
Computation.Config()
Uses default settings for all fields. |
|
Computation.Config(java.util.Locale _locale)
Overrides the locale field. |
|
Computation.Config(java.util.Locale _locale,
java.text.DecimalFormatSymbols _decimalFormatSymbols)
Overrides the locale , and decimalFormatSymbols fields. |
|
Computation.Config(java.util.Locale _locale,
java.text.DecimalFormatSymbols _decimalFormatSymbols,
java.util.TimeZone _timeZone)
Overrides the locale , and decimalFormatSymbols , and timeZone
fields. |
|
Computation.Config(java.util.Locale _locale,
java.util.TimeZone _timeZone)
Overrides the locale and timeZone fields. |
|
Computation.Config(java.util.TimeZone _timeZone)
Overrides the timeZone field. |
Method Summary | |
---|---|
java.lang.String |
toString()
|
void |
validate()
Validates the configuration for missing or improperly set values. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.util.Locale locale
null
will
use the default locale at the time the computation is run.
public java.text.DecimalFormatSymbols decimalFormatSymbols
locale
are
used.
public java.util.TimeZone timeZone
Date
. If left null
will use the default time zone at the time
the computation is run.
public java.nio.charset.Charset charset
null
, the default
charset for the locale will be used.
public CellComputationListener cellComputationListener
Constructor Detail |
---|
public Computation.Config()
public Computation.Config(java.util.Locale _locale)
locale
field.
public Computation.Config(java.util.TimeZone _timeZone)
timeZone
field.
public Computation.Config(java.util.Locale _locale, java.util.TimeZone _timeZone)
locale
and timeZone
fields.
public Computation.Config(java.util.Locale _locale, java.text.DecimalFormatSymbols _decimalFormatSymbols)
locale
, and decimalFormatSymbols
fields.
public Computation.Config(java.util.Locale _locale, java.text.DecimalFormatSymbols _decimalFormatSymbols, java.util.TimeZone _timeZone)
locale
, and decimalFormatSymbols
, and timeZone
fields.
Method Detail |
---|
public void validate()
java.lang.IllegalArgumentException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |