package at.gv.egovernment.moa.spss.server.iaik.xml; import iaik.server.modules.xml.Transformation; /** * Base implementation class for Transformation derived classes. * * @author Patrick Peck * @version $Id$ */ public abstract class TransformationImpl implements Transformation { /** The algorithm URI identifying the transformation algorithm. */ private String algorithmURI; /** * @see iaik.server.modules.xml.Transformation#getAlgorithmURI() */ public String getAlgorithmURI() { return algorithmURI; } /** * Sets the algorithm URI. * * @param algorithmURI The algorithm URI to set. */ protected void setAlgorithmURI(String algorithmURI) { this.algorithmURI = algorithmURI; } /** * 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. * * @see java.lang.Object#hashCode() */ public int hashCode() { return getAlgorithmURI().hashCode(); } }