Package be.hikage.xdt4j.locator

Source Code of be.hikage.xdt4j.locator.XPathLocator

package be.hikage.xdt4j.locator;

import be.hikage.xdt4j.XdtException;
import org.dom4j.Element;

public class XPathLocator extends Locator {
    public XPathLocator(String parameter) {
        super(parameter);
        if (parameter == null || parameter.isEmpty())
            throw new XdtException("Parameter is mandatory for XPathLocator");
    }

    @Override
    public String generateXPath(Element target) {
        return getParameter();
    }
}
TOP

Related Classes of be.hikage.xdt4j.locator.XPathLocator

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.