public class ScriptEventData extends AbstractEventData
Constructor and Description |
---|
ScriptEventData(ScrapingSession session,
ScrapeableFile scrapeableFile,
java.lang.String scriptName,
DataSet dataSet,
DataRecord dataRecord,
java.lang.Exception scriptException) |
Modifier and Type | Method and Description |
---|---|
DataRecord |
getDataRecord()
Returns the current data record (if applicable to the script) or null otherwise
|
DataSet |
getDataSet()
Returns the current data set (if applicable to the script) or null otherwise
|
ScrapeableFile |
getScrapeableFile()
Returns the scrapeable file the script is run under (if applicable, null otherwise)
|
java.lang.Exception |
getScriptException()
Returns the exception thrown by the script if the event time deals with an exception, null otherwise
|
java.lang.String |
getScriptName()
Returns the name of the script the event pertains to
|
ScrapingSession |
getSession()
Returns the current scraping session on which the event was triggered
|
java.lang.String |
toString() |
getLastReturnValue, setLastReturnValue
ScriptEventData(@NotNull ScrapingSession session, @Nullable ScrapeableFile scrapeableFile, @NotNull java.lang.String scriptName, @Nullable DataSet dataSet, @Nullable DataRecord dataRecord, @Nullable java.lang.Exception scriptException)
@NotNull public ScrapingSession getSession()
@Nullable public ScrapeableFile getScrapeableFile()
@NotNull public java.lang.String getScriptName()
@Nullable public DataSet getDataSet()
@Nullable public DataRecord getDataRecord()
@Nullable public java.lang.Exception getScriptException()
@NotNull public java.lang.String toString()
toString
in class java.util.EventObject