Package org.eclipse.birt.chart.script
Interface IScriptContext
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
IChartScriptContext
- All Known Implementing Classes:
AbstractScriptContext,ChartScriptContext
public interface IScriptContext extends java.io.SerializableThe interface declares methods to provide appropriate context in scripts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IExternalContextgetExternalContext()java.util.LocalegetLocale()Deprecated.UsegetULocale()instead.ILoggergetLogger()java.lang.ObjectgetProperty(java.lang.Object key)Returns property value.com.ibm.icu.util.ULocalegetULocale()voidsetProperty(java.lang.Object key, java.lang.Object value)Saves property value.
-
-
-
Method Detail
-
getLocale
@Deprecated java.util.Locale getLocale()
Deprecated.UsegetULocale()instead.- Returns:
- Returns the locale of current context.
-
getULocale
com.ibm.icu.util.ULocale getULocale()
- Returns:
- Returns the locale of current context.
- Since:
- 2.1
-
getExternalContext
IExternalContext getExternalContext()
- Returns:
- Returns the external context.
-
getLogger
ILogger getLogger()
- Returns:
- Returns an ILogger instance, to allow logging from script.
- See Also:
ILogger
-
getProperty
java.lang.Object getProperty(java.lang.Object key)
Returns property value.- Parameters:
key-- Returns:
- Since:
- 2.5
-
setProperty
void setProperty(java.lang.Object key, java.lang.Object value)Saves property value.- Parameters:
key-value-- Since:
- 2.5
-
-