Class DomXPathQuery


  • public class DomXPathQuery
    extends SpinXPathQuery
    Author:
    Sebastian Menski
    • Constructor Detail

      • DomXPathQuery

        public DomXPathQuery​(DomXmlElement domElement,
                             javax.xml.xpath.XPath query,
                             java.lang.String expression,
                             DomXmlDataFormat dataFormat)
    • Method Detail

      • string

        public java.lang.String string()
        Description copied from class: SpinXPathQuery
        Returns the XPath query result as a string.
        Specified by:
        string in class SpinXPathQuery
        Returns:
        the string result
      • number

        public java.lang.Double number()
        Description copied from class: SpinXPathQuery
        Returns the XPath query result as a double.
        Specified by:
        number in class SpinXPathQuery
        Returns:
        the double result
      • bool

        public java.lang.Boolean bool()
        Description copied from class: SpinXPathQuery
        Returns the XPath query result as a boolean.
        Specified by:
        bool in class SpinXPathQuery
        Returns:
        the boolean result
      • ns

        public SpinXPathQuery ns​(java.lang.String prefix,
                                 java.lang.String namespace)
        Description copied from class: SpinXPathQuery
        Maps a prefix, uri pair to a namespace.
        Specified by:
        ns in class SpinXPathQuery
        Parameters:
        prefix - prefix for the namespace.
        namespace - uri of the namespace
        Returns:
        itself
      • ns

        public SpinXPathQuery ns​(java.util.Map<java.lang.String,​java.lang.String> namespaces)
        Description copied from class: SpinXPathQuery
        Maps a map of prefix, uri pairs to namespaces
        Specified by:
        ns in class SpinXPathQuery
        Parameters:
        namespaces - Map of the prefix, uri pairs.
        Returns:
        itself