|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.webharvest.runtime.processors.BaseProcessor
org.webharvest.runtime.processors.WebHarvestPlugin
public abstract class WebHarvestPlugin
Base for all user-defined plugins.
| Constructor Summary | |
|---|---|
WebHarvestPlugin()
|
|
| Method Summary | |
|---|---|
Variable |
execute(Scraper scraper,
ScraperContext context)
|
abstract Variable |
executePlugin(Scraper scraper,
ScraperContext context)
Mathod that actually executes processor. |
java.lang.String |
getAttributeDesc()
|
java.lang.String[] |
getAttributeValueSuggestions(java.lang.String attributeName)
|
java.lang.Class[] |
getDependantProcessors()
Defines dependant subprocessors that are used inside this plugin and that will automatically be registered with this plugin. |
abstract java.lang.String |
getName()
Defines name of the processor. |
java.lang.String[] |
getRequiredAttributes()
This method should return all mandatory attribute names for the plugin processor. |
java.lang.String[] |
getRequiredSubprocessors()
This method should return all mandatory subprocessor names, or in other words all mandatory subtags that must be present in the body of this processor plugin. |
java.lang.String |
getTagDesc()
|
java.lang.String[] |
getValidAttributes()
This method should return all possible attribute names for the plugin processor. |
java.lang.String[] |
getValidSubprocessors()
This method should return all names of all allowed processors inside the body of this processor plugin. |
boolean |
hasBody()
|
void |
setDef(WebHarvestPluginDef def)
|
| Methods inherited from class org.webharvest.runtime.processors.BaseProcessor |
|---|
getElementDef, run |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebHarvestPlugin()
| Method Detail |
|---|
public abstract java.lang.String getName()
public java.lang.String[] getValidAttributes()
public java.lang.String[] getRequiredAttributes()
public java.lang.String[] getValidSubprocessors()
public java.lang.String[] getRequiredSubprocessors()
public java.lang.Class[] getDependantProcessors()
public java.lang.String[] getAttributeValueSuggestions(java.lang.String attributeName)
attributeName - Name of plugin attribute
public boolean hasBody()
public final Variable execute(Scraper scraper,
ScraperContext context)
execute in class BaseProcessor
public abstract Variable executePlugin(Scraper scraper,
ScraperContext context)
scraper - context -
public java.lang.String getTagDesc()
public java.lang.String getAttributeDesc()
public void setDef(WebHarvestPluginDef def)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||