org.webharvest.runtime
Class ScraperContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.webharvest.utils.Catalog
              extended by org.webharvest.runtime.ScraperContext
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class ScraperContext
extends Catalog

Context of scraper execution. All the variables created during scraper execution are stored in this context.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ScraperContext(Scraper scraper)
           
ScraperContext(Scraper scraper, ScraperContext callerContext)
           
 
Method Summary
 void dispose()
           
 ScraperContext getCallerContext()
           
 Variable getVar(java.lang.String name)
           
 java.lang.Object setVar(java.lang.Object key, java.lang.Object value)
           
 
Methods inherited from class org.webharvest.utils.Catalog
containsKey, get, put
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ScraperContext

public ScraperContext(Scraper scraper,
                      ScraperContext callerContext)

ScraperContext

public ScraperContext(Scraper scraper)
Method Detail

getVar

public Variable getVar(java.lang.String name)

setVar

public java.lang.Object setVar(java.lang.Object key,
                               java.lang.Object value)

getCallerContext

public ScraperContext getCallerContext()

dispose

public void dispose()