be.hikage.xdt4j.locator
Class Locator
java.lang.Object
be.hikage.xdt4j.locator.Locator
- Direct Known Subclasses:
- ConditionLocator, MatchLocator, XPathLocator
public abstract class Locator
- extends Object
|
Method Summary |
abstract String |
generateCondition(org.dom4j.Element target)
Generate the selection query that match the provided element
according the Locator condition. |
abstract String |
generateXPath(org.dom4j.Element target)
Generate a XPath for the privided Element with the correct selection query
accoding the Locator condition |
String |
getParameter()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parameter
protected String parameter
Locator
public Locator(String parameter)
getParameter
public String getParameter()
generateXPath
public abstract String generateXPath(org.dom4j.Element target)
- Generate a XPath for the privided Element with the correct selection query
accoding the Locator condition
- Parameters:
target - The Element
- Returns:
- The XPath as a String
generateCondition
public abstract String generateCondition(org.dom4j.Element target)
- Generate the selection query that match the provided element
according the Locator condition.
This method may thrown an UnsupportedOperationException if not supported
- Parameters:
target - The Element
- Returns:
- The selection query in an XPath format@
- Throws:
UnsupportedOperationException - if not supported
Copyright © 2012. All Rights Reserved.