Class DomXPathQuery
java.lang.Object
org.camunda.spin.xml.SpinXPathQuery
org.camunda.spin.impl.xml.dom.query.DomXPathQuery
- Author:
- Sebastian Menski
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DomXmlDataFormat
protected final DomXmlElement
protected final String
protected final XPath
protected DomXPathNamespaceResolver
-
Constructor Summary
ConstructorDescriptionDomXPathQuery
(DomXmlElement domElement, XPath query, String expression, DomXmlDataFormat dataFormat) -
Method Summary
Modifier and TypeMethodDescriptionReturns the XPath query result as attribute.Returns the XPath query result as a attribute list.bool()
Returns the XPath query result as a boolean.element()
Returns the XPath query result as element.Returns the XPath query result as a element list.Maps a prefix, uri pair to a namespace.Maps a map of prefix, uri pairs to namespacesnumber()
Returns the XPath query result as a double.string()
Returns the XPath query result as a string.
-
Field Details
-
domElement
-
query
-
expression
-
dataFormat
-
resolver
-
-
Constructor Details
-
DomXPathQuery
public DomXPathQuery(DomXmlElement domElement, XPath query, String expression, DomXmlDataFormat dataFormat)
-
-
Method Details
-
element
Description copied from class:SpinXPathQuery
Returns the XPath query result as element.- Specified by:
element
in classSpinXPathQuery
- Returns:
- the wrapped XML element
-
elementList
Description copied from class:SpinXPathQuery
Returns the XPath query result as a element list.- Specified by:
elementList
in classSpinXPathQuery
- Returns:
- the wrapped XML element list
-
attribute
Description copied from class:SpinXPathQuery
Returns the XPath query result as attribute.- Specified by:
attribute
in classSpinXPathQuery
- Returns:
- the wrapped XML attribute
-
attributeList
Description copied from class:SpinXPathQuery
Returns the XPath query result as a attribute list.- Specified by:
attributeList
in classSpinXPathQuery
- Returns:
- the wrapped XML attribute list
-
string
Description copied from class:SpinXPathQuery
Returns the XPath query result as a string.- Specified by:
string
in classSpinXPathQuery
- Returns:
- the string result
-
number
Description copied from class:SpinXPathQuery
Returns the XPath query result as a double.- Specified by:
number
in classSpinXPathQuery
- Returns:
- the double result
-
bool
Description copied from class:SpinXPathQuery
Returns the XPath query result as a boolean.- Specified by:
bool
in classSpinXPathQuery
- Returns:
- the boolean result
-
ns
Description copied from class:SpinXPathQuery
Maps a prefix, uri pair to a namespace.- Specified by:
ns
in classSpinXPathQuery
- Parameters:
prefix
- prefix for the namespace.namespace
- uri of the namespace- Returns:
- itself
-
ns
Description copied from class:SpinXPathQuery
Maps a map of prefix, uri pairs to namespaces- Specified by:
ns
in classSpinXPathQuery
- Parameters:
namespaces
- Map of the prefix, uri pairs.- Returns:
- itself
-