Class SimpleXPathAnalyzer

java.lang.Object
com.predic8.membrane.core.interceptor.xmlcontentfilter.SimpleXPathAnalyzer

public class SimpleXPathAnalyzer extends Object
Utility methods for XMLContentFilter.
  • Constructor Details

    • SimpleXPathAnalyzer

      public SimpleXPathAnalyzer()
  • Method Details

    • getIntersectExceptExprs

      public List<SimpleXPathParser.ContainerNode> getIntersectExceptExprs(String xpath)
      Analyzes whether an XPath 2.0 string is a simple "UnionExpr" and splits it into its IntersectExceptExpr parts.
      Returns:
      null, if the expression is not a UnionExpr; otherwise a list of IntersectExceptExprs, which the UnionExpr consists of.
    • getElement

      public QName getElement(SimpleXPathParser.ContainerNode intersectExceptExpr)
      Checks whether a given expression requires the existence of a named element.
      Returns:
      The named element (including its namespace) or null if there is no such element.