public class NewSimpleExtractor extends Object implements Extractor
OXPathExtractor. Therefore, we don't check if the same node has already been extracted (the memoizer does
this for us).| Constructor and Description |
|---|
NewSimpleExtractor(IAbstractOutputHandler oh) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
clear(DOMDocument page)
Clears all memoized data for the input
DOMDocument. |
void |
endExtraction()
Signals end of extraction
|
Integer |
extractNode(DOMNode context,
String label,
Integer parent)
Allows the extraction of the node specified by the pair (context,label) and returns a unique identifier
(as an
int) that uniquely identifies this extraction marker. |
Integer |
extractNode(DOMNode context,
String label,
Integer parent,
String value)
Allows the extraction of the node specified by the pair (context,label) and returns a unique identifier
(as an
int) that uniquely identifies this extraction marker. |
public NewSimpleExtractor(IAbstractOutputHandler oh)
public Integer extractNode(DOMNode context, String label, Integer parent) throws OXPathException
int) that uniquely identifies this extraction marker. May be a previously occurring identifier if
the (context,label) has already been extracted (via a call to this method with this object).extractNode in interface Extractorcontext - the context node in this labellabel - the label of this node in the extraction markerparent - the parent of the extraction node specified by (context,label)OXPathException - in case the parent of this node is inconsistent with a recurring node (one already created with a
previous call to this method)public Integer extractNode(DOMNode context, String label, Integer parent, String value) throws OXPathException
int) that uniquely identifies this extraction marker. May be a previously occurring identifier if
the (context,label) has already been extracted (via a call to this method with this object).extractNode in interface Extractorcontext - the context node in this labellabel - the label of this node in the extraction markerparent - the parent of the extraction node specified by (context,label)value - the value associated with this extraction nodeOXPathException - in case the parent of this node is inconsistent with a recurring node (one already created with a
previous call to this method)public void endExtraction()
throws OXPathException
endExtraction in interface ExtractorOXPathExceptionpublic Boolean clear(DOMDocument page)
DOMDocument. Will be overridden as long as a proxy object is used
(should always be used for OXPath classes overridding this method).clear in interface OXPathCachepage - DOMDocument we are removing all memoized results for, presumably because the page is being closed
in PAATCopyright © 2020 OXPath Team. All rights reserved.