Uses of Class
org.apache.camel.language.xpath.XPathBuilder
-
Uses of XPathBuilder in org.apache.camel.language.xpath
Modifier and TypeMethodDescriptionXPathBuilder.booleanResult()
Sets the expression result type toXPathConstants.BOOLEAN
XPathBuilder.documentType
(Class<?> documentType) Configures the document type to use.XPathBuilder.factory
(XPathFactory xpathFactory) Configures to use the provided XPath factory.XPathBuilder.factoryClassName
(String factoryClassName) Sets the factory class name to useXPathBuilder.functionResolver
(XPathFunctionResolver functionResolver) Sets theXPathFunctionResolver
instance to use on these XPath expressionsXPathBuilder.logNamespaces()
Activates trace logging of all discovered namespaces in the message - to simplify debugging namespace-related issuesRegisters the namespace prefix and URI with the builder so that the prefix can be used in XPath expressionsXPathBuilder.namespaces
(org.apache.camel.support.builder.Namespaces namespaces) Registers namespaces with the builder so that the registered prefixes can be used in XPath expressionsXPathBuilder.nodeResult()
Sets the expression result type toXPathConstants.NODE
XPathBuilder.nodeSetResult()
Sets the expression result type toXPathConstants.NODESET
XPathBuilder.numberResult()
Sets the expression result type toXPathConstants.NUMBER
XPathBuilder.objectModel
(String uri) Sets the object model URI to useXPathBuilder.preCompile
(boolean preCompile) Whether to enable pre-compiling the xpath expression during initialization phase.XPathBuilder.resultType
(Class<?> resultType) Sets the expression result type to the givenresultType
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.stringResult()
Sets the expression result type toXPathConstants.STRING
XPathBuilder.threadSafety
(boolean threadSafety) Whether to enable thread-safety for the returned result of the xpath expression.Registers a variable (in the global namespace) which can be referred to from XPath expressionsstatic XPathBuilder
static XPathBuilder
Modifier and TypeMethodDescriptionprotected void
XPathLanguage.configureBuilder
(XPathBuilder builder, Object[] properties)