Modifier and Type | Method and Description |
---|---|
XPathBuilder |
XPathBuilder.booleanResult()
Sets the expression result type to
XPathConstants.BOOLEAN |
XPathBuilder |
XPathBuilder.documentType(Class<?> documentType)
Configures the document type to use.
|
XPathBuilder |
XPathBuilder.factory(XPathFactory xpathFactory)
Configures to use the provided XPath factory.
|
XPathBuilder |
XPathBuilder.factoryClassName(String factoryClassName)
Sets the factory class name to use
|
XPathBuilder |
XPathBuilder.functionResolver(XPathFunctionResolver functionResolver)
Sets the
XPathFunctionResolver instance to use on these XPath expressions |
XPathBuilder |
XPathBuilder.logNamespaces()
Activates trace logging of all discovered namespaces in the message - to simplify debugging namespace-related
issues
Namespaces are printed in Hashmap style
{xmlns:prefix=[namespaceURI], xmlns:prefix=[namespaceURI]} . |
XPathBuilder |
XPathBuilder.namespace(String prefix,
String uri)
Registers the namespace prefix and URI with the builder so that the prefix can be used in XPath expressions
|
XPathBuilder |
XPathBuilder.namespaces(org.apache.camel.support.builder.Namespaces namespaces)
Registers namespaces with the builder so that the registered prefixes can be used in XPath expressions
|
XPathBuilder |
XPathBuilder.nodeResult()
Sets the expression result type to
XPathConstants.NODE |
XPathBuilder |
XPathBuilder.nodeSetResult()
Sets the expression result type to
XPathConstants.NODESET |
XPathBuilder |
XPathBuilder.numberResult()
Sets the expression result type to
XPathConstants.NUMBER |
XPathBuilder |
XPathBuilder.objectModel(String uri)
Sets the object model URI to use
|
XPathBuilder |
XPathBuilder.preCompile(boolean preCompile)
Whether to enable pre-compiling the xpath expression during initialization phase.
|
XPathBuilder |
XPathBuilder.resultType(Class<?> resultType)
Sets the expression result type to the given
resultType |
XPathBuilder |
XPathBuilder.saxon()
Configures to use Saxon as the XPathFactory which allows you to use XPath 2.0 functions which may not be part of
the build in JDK XPath parser.
|
XPathBuilder |
XPathBuilder.stringResult()
Sets the expression result type to
XPathConstants.STRING |
XPathBuilder |
XPathBuilder.threadSafety(boolean threadSafety)
Whether to enable thread-safety for the returned result of the xpath expression.
|
XPathBuilder |
XPathBuilder.variable(String name,
Object value)
Registers a variable (in the global namespace) which can be referred to from XPath expressions
|
static XPathBuilder |
XPathBuilder.xpath(String text) |
static XPathBuilder |
XPathBuilder.xpath(String text,
Class<?> resultType) |
Modifier and Type | Method and Description |
---|---|
protected void |
XPathLanguage.configureBuilder(XPathBuilder builder,
Object[] properties) |
Apache Camel