public abstract class BaseProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BaseElementDef |
elementDef |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseProcessor() |
protected |
BaseProcessor(BaseElementDef elementDef)
Base constructor - assigns element definition to the processor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
debug(BaseElementDef elementDef,
Scraper scraper,
Variable variable) |
abstract Variable |
execute(Scraper scraper,
ScraperContext context) |
protected Variable |
getBodyTextContent(BaseElementDef elementDef,
Scraper scraper,
ScraperContext context) |
protected Variable |
getBodyTextContent(BaseElementDef elementDef,
Scraper scraper,
ScraperContext context,
boolean registerExecution) |
protected Variable |
getBodyTextContent(BaseElementDef elementDef,
Scraper scraper,
ScraperContext context,
boolean registerExecution,
KeyValuePair[] properties) |
BaseElementDef |
getElementDef() |
protected BaseProcessor[] |
getSubprocessors(Scraper scraper) |
Variable |
run(Scraper scraper,
ScraperContext context)
Wrapper for the execute method.
|
protected void |
setProperty(String name,
Object value)
Defines processor runtime property with specified name and value.
|
protected BaseElementDef elementDef
protected BaseProcessor()
protected BaseProcessor(BaseElementDef elementDef)
elementDef - public abstract Variable execute(Scraper scraper, ScraperContext context)
public Variable run(Scraper scraper, ScraperContext context)
protected void setProperty(String name, Object value)
name - value - protected void debug(BaseElementDef elementDef, Scraper scraper, Variable variable)
protected Variable getBodyTextContent(BaseElementDef elementDef, Scraper scraper, ScraperContext context, boolean registerExecution, KeyValuePair[] properties)
protected Variable getBodyTextContent(BaseElementDef elementDef, Scraper scraper, ScraperContext context, boolean registerExecution)
protected Variable getBodyTextContent(BaseElementDef elementDef, Scraper scraper, ScraperContext context)
protected BaseProcessor[] getSubprocessors(Scraper scraper)
public BaseElementDef getElementDef()
Copyright © 2022 WSO2. All rights reserved.