Class SpinXPathQuery

  • Direct Known Subclasses:
    DomXPathQuery

    public abstract class SpinXPathQuery
    extends java.lang.Object
    Author:
    Sebastian Menski
    • Constructor Summary

      Constructors 
      Constructor Description
      SpinXPathQuery()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract SpinXmlAttribute attribute()
      Returns the XPath query result as attribute.
      abstract SpinList<SpinXmlAttribute> attributeList()
      Returns the XPath query result as a attribute list.
      abstract java.lang.Boolean bool()
      Returns the XPath query result as a boolean.
      abstract SpinXmlElement element()
      Returns the XPath query result as element.
      abstract SpinList<SpinXmlElement> elementList()
      Returns the XPath query result as a element list.
      abstract SpinXPathQuery ns​(java.lang.String prefix, java.lang.String namespace)
      Maps a prefix, uri pair to a namespace.
      abstract SpinXPathQuery ns​(java.util.Map<java.lang.String,​java.lang.String> namespaces)
      Maps a map of prefix, uri pairs to namespaces
      abstract java.lang.Double number()
      Returns the XPath query result as a double.
      abstract java.lang.String string()
      Returns the XPath query result as a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpinXPathQuery

        public SpinXPathQuery()
    • Method Detail

      • element

        public abstract SpinXmlElement element()
        Returns the XPath query result as element.
        Returns:
        the wrapped XML element
      • elementList

        public abstract SpinList<SpinXmlElement> elementList()
        Returns the XPath query result as a element list.
        Returns:
        the wrapped XML element list
      • attribute

        public abstract SpinXmlAttribute attribute()
        Returns the XPath query result as attribute.
        Returns:
        the wrapped XML attribute
      • attributeList

        public abstract SpinList<SpinXmlAttribute> attributeList()
        Returns the XPath query result as a attribute list.
        Returns:
        the wrapped XML attribute list
      • string

        public abstract java.lang.String string()
        Returns the XPath query result as a string.
        Returns:
        the string result
      • number

        public abstract java.lang.Double number()
        Returns the XPath query result as a double.
        Returns:
        the double result
      • bool

        public abstract java.lang.Boolean bool()
        Returns the XPath query result as a boolean.
        Returns:
        the boolean result
      • ns

        public abstract SpinXPathQuery ns​(java.lang.String prefix,
                                          java.lang.String namespace)
        Maps a prefix, uri pair to a namespace.
        Parameters:
        prefix - prefix for the namespace.
        namespace - uri of the namespace
        Returns:
        itself
      • ns

        public abstract SpinXPathQuery ns​(java.util.Map<java.lang.String,​java.lang.String> namespaces)
        Maps a map of prefix, uri pairs to namespaces
        Parameters:
        namespaces - Map of the prefix, uri pairs.
        Returns:
        itself