be.hikage.xdt4j.locator
Class ConditionLocator

java.lang.Object
  extended by be.hikage.xdt4j.locator.Locator
      extended by be.hikage.xdt4j.locator.ConditionLocator

public class ConditionLocator
extends Locator

Locator which is based on an relative XPath query on to create the selection


Field Summary
 
Fields inherited from class be.hikage.xdt4j.locator.Locator
parameter
 
Constructor Summary
ConditionLocator(String parameter)
           
 
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 be.hikage.xdt4j.locator.Locator
getParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionLocator

public ConditionLocator(String parameter)
Method Detail

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.