psdi.iface.stax

Class XPathExpression

  • java.lang.Object
    • psdi.iface.stax.XPathExpression


  • public class XPathExpression
    extends java.lang.Object
    The XPath expression.
    • Constructor Detail

      • XPathExpression

        public XPathExpression(java.lang.String xpathExpr,
                               java.util.Map prefixNSMap)
                        throws MXException
        Parameters:
        xpathExpr - the xpath expression.
        prefixNSMap - the prfeix/Namespace map.
        Throws:
        java.lang.Exception
        MXException
    • Method Detail

      • isAttributeExpr

        public boolean isAttributeExpr()
        Returns:
        true if the expression points to an xml attribute.
      • getPath

        public java.util.List getPath()
        Returns:
        the xpath as a List of QName's
      • getAttributeName

        public javax.xml.namespace.QName getAttributeName()
        Returns:
        the QName of the attribute for the xpath expression.
      • isEmptyPath

        public boolean isEmptyPath()
      • isRootOnlyPath

        public boolean isRootOnlyPath()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object