public class XPathConfigBuilder extends Object
IXPathConfig.| Modifier and Type | Field and Description |
|---|---|
static IXPathConfig |
DEFAULT |
static XPathFactory |
XPATH_FACTORY_SAXON_FIRST |
| Constructor and Description |
|---|
XPathConfigBuilder() |
| Modifier and Type | Method and Description |
|---|---|
IXPathConfig |
build() |
String |
getGlobalXPathFactory() |
Class<? extends XPathFactory> |
getXPathFactoryClass() |
XPathFunctionResolver |
getXPathFunctionResolver() |
XPathVariableResolver |
getXPathVariableResolver() |
XPathConfigBuilder |
setGlobalXPathFactory(String sGlobalXPathFactory)
With Java 11+ module path system, you can't access
com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl as
package com.sun.org.apache.xpath.internal.jaxp is declared in
module java.xml, which does not export it. |
XPathConfigBuilder |
setXPathFactoryClass(Class<? extends XPathFactory> aXPathFactoryClass) |
XPathConfigBuilder |
setXPathFunctionResolver(XPathFunctionResolver xPathFunctionResolver) |
XPathConfigBuilder |
setXPathVariableResolver(XPathVariableResolver xPathVariableResolver) |
public static final XPathFactory XPATH_FACTORY_SAXON_FIRST
public static final IXPathConfig DEFAULT
@Nullable public Class<? extends XPathFactory> getXPathFactoryClass()
@Nonnull public XPathConfigBuilder setXPathFactoryClass(@Nonnull Class<? extends XPathFactory> aXPathFactoryClass)
@Nonnull public XPathConfigBuilder setGlobalXPathFactory(@Nullable String sGlobalXPathFactory)
com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl as
package com.sun.org.apache.xpath.internal.jaxp is declared in
module java.xml, which does not export it.javax.xml.xpath.XPathFactory system property. However, this
change is global to the application.sGlobalXPathFactory - Fully qualified class name of the 'default' XPathFactory.
Most commonly set to
'com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl'.@Nullable public XPathVariableResolver getXPathVariableResolver()
@Nonnull public XPathConfigBuilder setXPathVariableResolver(@Nullable XPathVariableResolver xPathVariableResolver)
@Nullable public XPathFunctionResolver getXPathFunctionResolver()
@Nonnull public XPathConfigBuilder setXPathFunctionResolver(@Nullable XPathFunctionResolver xPathFunctionResolver)
@Nonnull public IXPathConfig build() throws XPathFactoryConfigurationException
Copyright © 2014–2020 Philip Helger. All rights reserved.