ExtractorPatternEventData
ExtractorPatternEventData extends AbstractEventData
This contains the data for various extractor pattern operations
Inherits the following methods from AbstractEventData
See Also
extractorPatternTimedOut
boolean extractorPatternEventData.extractorPatternTimedOut ( )
Description
Returns the status of the extractor pattern timeout. Returns true if and only if the extractor pattern was applied and timed out while doing so. Otherwise it will return false.
Parameters
This method does not receive any parameters.
Return Values
Returns a boolean value representing the status of the extractor pattern timeout.
Change Log
Version |
Description |
6.0.55a |
Available for all editions. |
Examples
Determine if an extractor pattern has timed out.
public Object handleEvent(EventFireTime fireTime, ExtractorPatternEventData data) {
if (data.extractorPatternTimeOut()) {
// do something
}
}
getDataRecord
DataRecord extractorPatternEventData.getDataRecord ( )
Description
Returns the DataRecord value for the object.
Parameters
This method does not receive any parameters.
Return Values
Returns the DataRecord value for the object.
Change Log
Version |
Description |
6.0.55a |
Available for all editions. |
Examples
Get the current DataRecord.
public Object handleEvent(EventFireTime fireTime, ExtractorPatternEventData data) {
DataRecord dr = data.getDataRecord();
// do something
}
getDataSet
DataSet extractorPatternEventData.getDataSet ( )
Description
Returns the DataSet value for the object.
Parameters
This method does not receive any parameters.
Return Values
Returns the DataSet value for the object.
Change Log
Version |
Description |
6.0.55a |
Available for all editions. |
Examples
Get the current DataSet.
public Object handleEvent(EventFireTime fireTime, ExtractorPatternEventData data) {
DataSet ds = data.getDataSet();
// do something
}
getExtractorPattern
ExtractorPattern extractorPatternEventData.getExtractorPattern ( )
Description
Returns the ExtractorPattern value for the object.
Parameters
This method does not receive any parameters.
Return Values
Returns the ExtractorPattern value for the object.
Change Log
Version |
Description |
6.0.55a |
Available for all editions. |
Examples
Get the current ExtractorPattern.
public Object handleEvent(EventFireTime fireTime, ExtractorPatternEventData data) {
ExtractorPattern pattern = data.getExtractorPattern();
// do something
}
getScrapeableFile
ScrapeableFile extractorPatternEventData.getScrapeableFile ( )
Description
Returns the Scrapeablefile value for the object.
Parameters
This method does not receive any parameters.
Return Values
Returns the Scrapeablefile value for the object.
Change Log
Version |
Description |
6.0.55a |
Available for all editions. |
Examples
Get the current ScrapeableFile.
public Object handleEvent(EventFireTime fireTime, ExtractorPatternEventData data) {
ScrapeableFile sf = data.getScrapeableFile();
// do something
}
getSession
ScrapingSession extractorPatternEventData.getSession ( )
Description
Returns the Session value for the object.
Parameters
This method does not receive any parameters.
Return Values
Returns the Session value for the object.
Change Log
Version |
Description |
6.0.55a |
Available for all editions. |
Examples
Get the current Session.
public Object handleEvent(EventFireTime fireTime, ExtractorPatternEventData data) {
ScrapingSession _session = data.getSession();
// do something
}