Class DomXPathQuery
java.lang.Object
org.camunda.spin.xml.SpinXPathQuery
org.camunda.spin.impl.xml.dom.query.DomXPathQuery
- Author:
- Sebastian Menski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DomXmlDataFormatprotected final DomXmlElementprotected final Stringprotected final XPathprotected DomXPathNamespaceResolver -
Constructor Summary
ConstructorsConstructorDescriptionDomXPathQuery(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:SpinXPathQueryReturns the XPath query result as element.- Specified by:
elementin classSpinXPathQuery- Returns:
- the wrapped XML element
-
elementList
Description copied from class:SpinXPathQueryReturns the XPath query result as a element list.- Specified by:
elementListin classSpinXPathQuery- Returns:
- the wrapped XML element list
-
attribute
Description copied from class:SpinXPathQueryReturns the XPath query result as attribute.- Specified by:
attributein classSpinXPathQuery- Returns:
- the wrapped XML attribute
-
attributeList
Description copied from class:SpinXPathQueryReturns the XPath query result as a attribute list.- Specified by:
attributeListin classSpinXPathQuery- Returns:
- the wrapped XML attribute list
-
string
Description copied from class:SpinXPathQueryReturns the XPath query result as a string.- Specified by:
stringin classSpinXPathQuery- Returns:
- the string result
-
number
Description copied from class:SpinXPathQueryReturns the XPath query result as a double.- Specified by:
numberin classSpinXPathQuery- Returns:
- the double result
-
bool
Description copied from class:SpinXPathQueryReturns the XPath query result as a boolean.- Specified by:
boolin classSpinXPathQuery- Returns:
- the boolean result
-
ns
Description copied from class:SpinXPathQueryMaps a prefix, uri pair to a namespace.- Specified by:
nsin classSpinXPathQuery- Parameters:
prefix- prefix for the namespace.namespace- uri of the namespace- Returns:
- itself
-
ns
Description copied from class:SpinXPathQueryMaps a map of prefix, uri pairs to namespaces- Specified by:
nsin classSpinXPathQuery- Parameters:
namespaces- Map of the prefix, uri pairs.- Returns:
- itself
-