org.webharvest.runtime.processors.plugins
Class JsonToXmlPlugin

java.lang.Object
  extended by org.webharvest.runtime.processors.BaseProcessor
      extended by org.webharvest.runtime.processors.WebHarvestPlugin
          extended by org.webharvest.runtime.processors.plugins.JsonToXmlPlugin

public class JsonToXmlPlugin
extends WebHarvestPlugin

Converter from JSON to XML


Constructor Summary
JsonToXmlPlugin()
           
 
Method Summary
 Variable executePlugin(Scraper scraper, ScraperContext context)
          Mathod that actually executes processor.
 java.lang.String getName()
          Defines name of the processor.
 
Methods inherited from class org.webharvest.runtime.processors.WebHarvestPlugin
execute, getAttributeDesc, getAttributeValueSuggestions, getDependantProcessors, getRequiredAttributes, getRequiredSubprocessors, getTagDesc, getValidAttributes, getValidSubprocessors, hasBody, setDef
 
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

JsonToXmlPlugin

public JsonToXmlPlugin()
Method Detail

getName

public java.lang.String getName()
Description copied from class: WebHarvestPlugin
Defines name of the processor. Should be valid identifier. Processor's tag will use this name. For example, if this name is "myprocessor" in config file it will be used as <myprocessor...>...</myprocessor>

Specified by:
getName in class WebHarvestPlugin
Returns:
Name of the processor

executePlugin

public Variable executePlugin(Scraper scraper,
                              ScraperContext context)
Description copied from class: WebHarvestPlugin
Mathod that actually executes processor. Since one instance of this class may be used for multiple executions, creator of plugin is responsible for initiating local variables at the beginning of this method.

Specified by:
executePlugin in class WebHarvestPlugin
Returns:
Instance of variable as result of xecution.