at.gv.egovernment.moa.spss.server.iaik.xml
Class XPath2FilterImpl

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.iaik.xml.XPath2FilterImpl
All Implemented Interfaces:
iaik.server.modules.xml.XPath2Transformation.XPath2Filter

public class XPath2FilterImpl
extends Object
implements iaik.server.modules.xml.XPath2Transformation.XPath2Filter

An object encapsulating an XPath-Filter2 expression.

Version:
$Id$
Author:
Patrick Peck

Fields inherited from interface iaik.server.modules.xml.XPath2Transformation.XPath2Filter
ALL, INTERSECTION, SUBTRACTION, UNION
 
Constructor Summary
XPath2FilterImpl(String filterType, String xPathExpression, Map namespaceDeclarations)
          Create a new XPath2FilterImpl object.
 
Method Summary
 boolean equals(Object other)
          Compare this object to another.
 String getFilterType()
           
 Map getNamespaceDeclarations()
           
 String getXPathExpression()
           
 int hashCode()
           
protected  void setFilterType(String filterType)
          Set the filter type.
protected  void setNamespaceDeclarations(Map namespaceDeclarations)
          Set the namespace declarations.
protected  void setXPathExpression(String xPathExpression)
          Set the XPath expression.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPath2FilterImpl

public XPath2FilterImpl(String filterType,
                        String xPathExpression,
                        Map namespaceDeclarations)
Create a new XPath2FilterImpl object.
Parameters:
filterType - The type of filter. Must be one of the filter type constants declared in iaik.server.modules.xml.XPath2Transformation.XPath2Filter
xPathExpression - The XPath expression belonging to this filter.
namespaceDeclarations - The namespace declarations visible for this XPath2Filter.
Method Detail

getFilterType

public String getFilterType()
Specified by:
getFilterType in interface iaik.server.modules.xml.XPath2Transformation.XPath2Filter
See Also:
XPath2Transformation.XPath2Filter.getFilterType()

setFilterType

protected void setFilterType(String filterType)
Set the filter type.
Parameters:
filterType - The filter type to set.

getXPathExpression

public String getXPathExpression()
Specified by:
getXPathExpression in interface iaik.server.modules.xml.XPath2Transformation.XPath2Filter
See Also:
XPath2Transformation.XPath2Filter.getXPathExpression()

setXPathExpression

protected void setXPathExpression(String xPathExpression)
Set the XPath expression.
Parameters:
xPathExpression - The XPath expression to set.

getNamespaceDeclarations

public Map getNamespaceDeclarations()
Specified by:
getNamespaceDeclarations in interface iaik.server.modules.xml.XPath2Transformation.XPath2Filter
See Also:
XPath2Transformation.XPath2Filter.getNamespaceDeclarations()

setNamespaceDeclarations

protected void setNamespaceDeclarations(Map namespaceDeclarations)
Set the namespace declarations.
Parameters:
namespaceDeclarations - The mapping between namespace prefixes and their associated URI.

equals

public boolean equals(Object other)
Compare this object to another.
Overrides:
equals in class Object
Parameters:
other - The object to compare this XPath2Filter to.
Returns:
true, if other is a XPath2Filter and the filter types match and the XPath expressions match. Otherwise false is returned.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()