public enum OXPath extends Enum<OXPath>
Modifier and Type | Class and Description |
---|---|
class |
OXPath.EngineOptions
Options of the OXPath engine
Default values:
doContinueOnMissingContextNode = false ,
useIdAttributeForXPathLocator = true ,
useClassAttributeForXPathLocator = true ,
waitAfterActionExecutionMs = 200 . |
Enum Constant and Description |
---|
ENGINE
Singleton instance
|
Modifier and Type | Method and Description |
---|---|
OXPathType |
evaluate(File in,
WebBrowserBuilder builder,
IAbstractOutputHandler oh)
Evaluates a query contained in a
File (in the UTF8 encoding) , using the given WebBrowser . |
OXPathType |
evaluate(File in,
WebBrowser browser,
IAbstractOutputHandler oh)
Evaluates a query contained in a
File (in the UTF8 encoding) , using the given WebBrowser . |
OXPathType |
evaluate(Reader in,
WebBrowserBuilder builder,
IAbstractOutputHandler oh)
Evaluates a query provided as a
Reader , using the given WebBrowser . |
OXPathType |
evaluate(Reader in,
WebBrowser browser,
IAbstractOutputHandler oh)
Evaluates a query provided as a
Reader , using the given WebBrowser . |
OXPathType |
evaluate(String wrapper,
WebBrowserBuilder builder,
IAbstractOutputHandler oh)
Evaluates a query provided as a
Reader , using the given WebBrowser . |
OXPathType |
evaluate(String wrapper,
WebBrowser browser,
IAbstractOutputHandler oh)
Evaluates a query provided as string, using the given
WebBrowser . |
OXPathType |
evaluateWithBrowserBuilder(Node node,
WebBrowserBuilder builder,
IAbstractOutputHandler oh) |
OXPath.EngineOptions |
getOptions() |
static OXPath |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OXPath[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OXPath ENGINE
public static OXPath[] values()
for (OXPath c : OXPath.values()) System.out.println(c);
public static OXPath valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic OXPath.EngineOptions getOptions()
public OXPathType evaluate(File in, WebBrowserBuilder builder, IAbstractOutputHandler oh)
File
(in the UTF8 encoding) , using the given WebBrowser
. The extracted data (if any) is
managed by the provided IAbstractOutputHandler
. It throws a RuntimeException
in case the execution does not
terminate correctly. It returns an object OXPathType
that encodes the returned result types.in
- the Reader
to read the query frombuilder
- the BrowserBuilder
object to use for the evaluationoh
- the IAbstractOutputHandler
to handle the output formatOXPathType
that encodes the returned result typesA
- OXPathRuntimeException if something goes wrongpublic OXPathType evaluateWithBrowserBuilder(Node node, WebBrowserBuilder builder, IAbstractOutputHandler oh)
public OXPathType evaluate(File in, WebBrowser browser, IAbstractOutputHandler oh)
File
(in the UTF8 encoding) , using the given WebBrowser
. The extracted data (if any) is
managed by the provided IAbstractOutputHandler
. It throws a RuntimeException
in case the execution does not
terminate correctly. It returns an object OXPathType
that encodes the returned result types.in
- the Reader
to read the query frombrowser
- the WebBrowser
object to use for the evaluationoh
- the IAbstractOutputHandler
to handle the output formatOXPathType
that encodes the returned result typesA
- OXPathRuntimeException if something goes wrongpublic OXPathType evaluate(Reader in, WebBrowserBuilder builder, IAbstractOutputHandler oh)
Reader
, using the given WebBrowser
. The extracted data (if any) is
managed by the provided IAbstractOutputHandler
. It throw a RuntimeException
in case the execution does not
terminate correctly. It returns an object OXPathType
that encodes the returned result types.in
- the Reader
to read the query frombuilder
- the WebBrowserBuilder
object to use for the evaluationoh
- the IAbstractOutputHandler
to handle the output formatOXPathType
that encodes the returned result typesA
- OXPathRuntimeException if something goes wrongpublic OXPathType evaluate(Reader in, WebBrowser browser, IAbstractOutputHandler oh)
Reader
, using the given WebBrowser
. The extracted data (if any) is
managed by the provided IAbstractOutputHandler
. It throw a RuntimeException
in case the execution does not
terminate correctly. It returns an object OXPathType
that encodes the returned result types.in
- the Reader
to read the query frombrowser
- the WebBrowser object to use for the evaluationoh
- the IAbstractOutputHandler
to handle the output formatOXPathType
that encodes the returned result typesA
- OXPathRuntimeException if something goes wrongpublic OXPathType evaluate(String wrapper, WebBrowserBuilder builder, IAbstractOutputHandler oh)
Reader
, using the given WebBrowser
. The extracted data (if any) is
managed by the provided IAbstractOutputHandler
. It throw a RuntimeException
in case the execution does not
terminate correctly. It returns an object OXPathType
that encodes the returned result types.in
- the Reader
to read the query frombuilder
- the WebBrowserBuilder
object to use for the evaluationoh
- the IAbstractOutputHandler
to handle the output formatOXPathType
that encodes the returned result typesA
- OXPathRuntimeException if something goes wrongpublic OXPathType evaluate(String wrapper, WebBrowser browser, IAbstractOutputHandler oh)
WebBrowser
. The extracted data (if any) is managed by
the provided IAbstractOutputHandler
. It throw a RuntimeException
in case the execution does not terminate
correctly. It returns an object OXPathType
that encodes the returned result types.wrapper
- the Reader
to read the query frombrowser
- the WebBrowser object to use for the evaluationoh
- the IAbstractOutputHandler
to handle the output formatOXPathType
that encodes the returned result typesAn
- OXPathRuntimeException
if something goes wrongCopyright © 2020 OXPath Team. All rights reserved.