@Deprecated public class SimpleExtractor 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 |
---|
SimpleExtractor(ObjectOutputStream iOS)
Deprecated.
basic constructor, assigns
|
Modifier and Type | Method and Description |
---|---|
Boolean |
clear(DOMDocument page)
Deprecated.
Clears all memoized data for the input
DOMDocument . |
void |
endExtraction()
Deprecated.
Signals end of extraction
|
Integer |
extractNode(DOMNode context,
String label,
Integer parent)
Deprecated.
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)
Deprecated.
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 SimpleExtractor(ObjectOutputStream iOS)
iOS
- 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 Extractor
context
- 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 Extractor
context
- 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 Extractor
OXPathException
public 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 OXPathCache
page
- DOMDocument
we are removing all memoized results for, presumably because the page is being closed
in PAATCopyright © 2020 OXPath Team. All rights reserved.