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

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.iaik.xml.TransformationImpl
        |
        +--at.gv.egovernment.moa.spss.server.iaik.xml.XPathTransformationImpl
All Implemented Interfaces:
iaik.server.modules.xml.Transformation, iaik.server.modules.xml.XPathTransformation

public class XPathTransformationImpl
extends TransformationImpl
implements iaik.server.modules.xml.XPathTransformation

A Transformation containing an XPath expression.

Version:
$Id$
Author:
Patrick Peck

Fields inherited from interface iaik.server.modules.xml.XPathTransformation
ALL, XPATH
 
Constructor Summary
XPathTransformationImpl(String xPathExpression, Map namespaceDeclarations)
          Create a new XPathTransformationImpl.
 
Method Summary
 boolean equals(Object other)
          Compare this XPathTransformation to another.
 Map getNamespaceDeclarations()
           
 String getXPathExpression()
           
 int hashCode()
          Returns the hash code of the algorithm URI.
protected  void setNamespaceDeclarations(Map namespaceDeclarations)
          Set the namespace declarations.
protected  void setXPathExpression(String xPathExpression)
          Set the XPath expression.
 
Methods inherited from class at.gv.egovernment.moa.spss.server.iaik.xml.TransformationImpl
getAlgorithmURI, setAlgorithmURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface iaik.server.modules.xml.Transformation
getAlgorithmURI
 

Constructor Detail

XPathTransformationImpl

public XPathTransformationImpl(String xPathExpression,
                               Map namespaceDeclarations)
Create a new XPathTransformationImpl. The namespace declarations are initialized empty.
Parameters:
xPathExpression - The XPath expression this object will contain.
namespaceDeclarations - The namespace declarations visible for this XPath.
Method Detail

setXPathExpression

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

getXPathExpression

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

getNamespaceDeclarations

public Map getNamespaceDeclarations()
Specified by:
getNamespaceDeclarations in interface iaik.server.modules.xml.XPathTransformation
See Also:
XPathTransformation.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 XPathTransformation to another.
Specified by:
equals in interface iaik.server.modules.xml.Transformation
Overrides:
equals in class Object
Parameters:
other - The object to compare this XPathTransformation to.
Returns:
true, if other is an XPathTransformation and if this object contains the same XPath expression as other. Otherwise false is returned.
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Description copied from class: TransformationImpl
Returns the hash code of the algorithm URI. Should be overridden if a transformation distinguishes itself from others by more than just the algorithm URI.
Specified by:
hashCode in interface iaik.server.modules.xml.Transformation
Overrides:
hashCode in class TransformationImpl
See Also:
Object.hashCode()