package at.gv.egovernment.moa.spss.api.impl; import java.util.HashMap; import java.util.Map; import at.gv.egovernment.moa.spss.api.common.XPathFilter; /** * Default implementation of XPathFilter. * * @author Fatemeh Philippi * @version $Id$ */ public class XPathFilterImpl implements XPathFilter { /** The type of filter. */ private String filterType; /** The XPath expression of the filter. */ private String xPathExpression; /** The namespace prefix to URI mapping to while evaluating the XPath * expression. */ private Map namespaceDeclarations = new HashMap(); /** * Sets the type of filter. * * @param filterType The type of filter. */ public void setFilterType(String filterType) { this.filterType = filterType; } public String getFilterType() { return filterType; } /** * Sets the XPath expression of the filter. * * @param xPathExpression The XPath expression of the filter. */ public void setXPathExpression(String xPathExpression) { this.xPathExpression = xPathExpression; } public String getXPathExpression() { return xPathExpression; } /** * Sets the namespace prefix to URI mapping to while evaluating the XPath * expression. * * @param namespaceDeclarations The namespace prefix to URI mapping to while * evaluating the XPath expression. */ public void setNamespaceDelcarations(Map namespaceDeclarations) { this.namespaceDeclarations = namespaceDeclarations; } public Map getNamespaceDeclarations() { return namespaceDeclarations; } }