Class SimpleXPathAnalyzer
java.lang.Object
com.predic8.membrane.core.interceptor.xmlcontentfilter.SimpleXPathAnalyzer
Utility methods for
XMLContentFilter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetElement(SimpleXPathParser.ContainerNode intersectExceptExpr) Checks whether a given expression requires the existence of a named element.getIntersectExceptExprs(String xpath) Analyzes whether an XPath 2.0 string is a simple "UnionExpr" and splits it into its IntersectExceptExpr parts.
-
Constructor Details
-
SimpleXPathAnalyzer
public SimpleXPathAnalyzer()
-
-
Method Details
-
getIntersectExceptExprs
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
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.
-