Class AndroidXPathFactory


  • public class AndroidXPathFactory
    extends java.lang.Object
    XPath factory with automatic support for the android name space.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_NS_PREFIX
      Default prefix for android name space: 'android'
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.xml.xpath.XPath newXPath()
      Creates a new XPath object using the default prefix for the android namespace.
      static javax.xml.xpath.XPath newXPath​(java.lang.String androidPrefix)
      Creates a new XPath object, specifying which prefix in the query is used for the android namespace.
      • Methods inherited from class java.lang.Object

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

      • DEFAULT_NS_PREFIX

        public static final java.lang.String DEFAULT_NS_PREFIX
        Default prefix for android name space: 'android'
        See Also:
        Constant Field Values
    • Constructor Detail

      • AndroidXPathFactory

        public AndroidXPathFactory()
    • Method Detail

      • newXPath

        public static javax.xml.xpath.XPath newXPath​(java.lang.String androidPrefix)
        Creates a new XPath object, specifying which prefix in the query is used for the android namespace.
        Parameters:
        androidPrefix - The namespace prefix.
      • newXPath

        public static javax.xml.xpath.XPath newXPath()
        Creates a new XPath object using the default prefix for the android namespace.
        See Also:
        DEFAULT_NS_PREFIX