|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
defines common features for an engine task. A task captures a set of operations that engine performs to get a unit of work done.
Field Summary | |
static int |
CANCEL_ON_ERROR
cancel the task execution if there is an error. |
static int |
CONTINUE_ON_ERROR
continue the task execution if there is an error. |
static int |
STATUS_CANCELLED
the task is finished by cancled |
static int |
STATUS_FAILED
the task is finished with errors |
static int |
STATUS_NOT_STARTED
the task is not running yet |
static int |
STATUS_RUNNING
the task is running |
static int |
STATUS_SUCCEEDED
the task is finished with sucessful |
static int |
TASK_DATAEXTRACTION
|
static int |
TASK_GETPARAMETERDEFINITION
|
static int |
TASK_RENDER
|
static int |
TASK_RUN
|
static int |
TASK_RUNANDRENDER
|
static int |
TASK_UNKNOWN
|
Method Summary | |
void |
addScriptableJavaObject(java.lang.String jsName,
java.lang.Object obj)
Deprecated. user should add it to appContext. |
void |
cancel()
set the cancel flag if the task is running. |
void |
cancel(java.lang.Object signal)
Deprecated. user should use cancel() instead. |
void |
close()
close the task, relese any resources. |
java.util.Map |
getAppContext()
returns the context objects for the task. |
boolean |
getCancelFlag()
return a flag if the user called cancel. |
IReportEngine |
getEngine()
returns the report engine object |
java.util.List |
getErrors()
Gets all errors. |
int |
getID()
returns an identifier for the task. |
java.util.Locale |
getLocale()
returns the locale for running the task |
java.util.logging.Logger |
getLogger()
return the logger used by the task. |
java.lang.String |
getParameterDisplayText(java.lang.String name)
Gets parameter display text by parameter name. |
java.lang.Object |
getParameterValue(java.lang.String name)
returns the value of a parameter. |
java.util.HashMap |
getParameterValues()
returns the parameter name/value collection |
IReportRunnable |
getReportRunnable()
returns the runnable report design object |
int |
getStatus()
get the status of task |
int |
getTaskType()
Gets the type of the engine. |
com.ibm.icu.util.ULocale |
getULocale()
returns the locale for running the task |
void |
setAppContext(java.util.Map context)
sets the task context. |
void |
setDataSource(org.eclipse.birt.core.archive.IDocArchiveReader dataSource)
set the data source used by the engine task. |
void |
setErrorHandlingOption(int option)
set the error handling mode for the first error. |
void |
setLocale(java.util.Locale locale)
sets the task locale |
void |
setLocale(com.ibm.icu.util.ULocale locale)
sets the task locale |
void |
setLogger(java.util.logging.Logger logger)
set the logger used by the task. |
void |
setParameter(java.lang.String name,
java.lang.Object value,
java.lang.String displayText)
Sets parameter value and display text. |
void |
setParameterDisplayText(java.lang.String name,
java.lang.String displayText)
Sets display text of a parameter with specified name. |
void |
setParameterValue(java.lang.String name,
java.lang.Object value)
sets one parameter value |
void |
setParameterValues(java.util.Map params)
set all parameter valuess |
boolean |
validateParameters()
|
Field Detail |
public static final int TASK_UNKNOWN
public static final int TASK_GETPARAMETERDEFINITION
public static final int TASK_RUN
public static final int TASK_RENDER
public static final int TASK_RUNANDRENDER
public static final int TASK_DATAEXTRACTION
public static final int STATUS_NOT_STARTED
public static final int STATUS_RUNNING
public static final int STATUS_SUCCEEDED
public static final int STATUS_FAILED
public static final int STATUS_CANCELLED
public static final int CONTINUE_ON_ERROR
public static final int CANCEL_ON_ERROR
Method Detail |
public void setLocale(java.util.Locale locale)
locale
- the task localepublic void setLocale(com.ibm.icu.util.ULocale locale)
locale
- the task localepublic void setAppContext(java.util.Map context)
context
- -
task contexts in a map. The map contains name-value pairspublic java.util.Locale getLocale()
public com.ibm.icu.util.ULocale getULocale()
public java.util.Map getAppContext()
public IReportEngine getEngine()
public void addScriptableJavaObject(java.lang.String jsName, java.lang.Object obj)
jsName
- the name that the object is referenced in JavaScriptobj
- the Java object that is wrapped and scriptedpublic int getID()
public IReportRunnable getReportRunnable()
public void setParameterValues(java.util.Map params)
params
- a hash map with all parameterspublic void setParameterValue(java.lang.String name, java.lang.Object value)
name
- parameter namevalue
- parameter valuepublic java.util.HashMap getParameterValues()
public java.lang.Object getParameterValue(java.lang.String name)
public boolean validateParameters()
public void setParameter(java.lang.String name, java.lang.Object value, java.lang.String displayText)
name
- parameter name.value
- value.displayText
- display text.public java.lang.String getParameterDisplayText(java.lang.String name)
name
- parameter name.
public void setParameterDisplayText(java.lang.String name, java.lang.String displayText)
name
- name of the parameter.displayText
- display text to set.public void cancel()
public void cancel(java.lang.Object signal)
public boolean getCancelFlag()
public int getStatus()
public void setErrorHandlingOption(int option)
option
- the error handling mode.
public void close()
public void setDataSource(org.eclipse.birt.core.archive.IDocArchiveReader dataSource)
dataSource
- data source archive.public java.util.List getErrors()
public int getTaskType()
public java.util.logging.Logger getLogger()
public void setLogger(java.util.logging.Logger logger)
logger
- the logger used to output messages.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |