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