be.hikage.xdt4j.locator
Class Locator

java.lang.Object
  extended by be.hikage.xdt4j.locator.Locator
Direct Known Subclasses:
ConditionLocator, MatchLocator, XPathLocator

public abstract class Locator
extends Object


Field Summary
protected  String parameter
           
 
Constructor Summary
Locator(String parameter)
           
 
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
 

Field Detail

parameter

protected String parameter
Constructor Detail

Locator

public Locator(String parameter)
Method Detail

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.