public boolean checkXpathStartsWithXpathEventableCondition ( Document dom , EventableCondition eventableCondition , String xpath ) throws XPathExpressionException { if ( eventableCondition == null || Strings . isNullOrEmpty ( eventableCondition . getInXPath ( ) ) ) { throw new CrawljaxException ( "Eventable has no XPath condition" ) ; } List < String > expressions = XPathHelper . getXpathForXPathExpressions ( dom , eventableCondition . getInXPath ( ) ) ; return checkXPathUnderXPaths ( xpath , expressions ) ; }
Checks whether an XPath expression starts with an XPath eventable condition .