package at.gv.egovernment.moa.spss.server.iaik.xml; import iaik.server.modules.xml.Canonicalization; /** * An implementation of the CanonicalizationTransform * Transformation type. * * @author Patrick Peck * @version $Id$ */ public class CanonicalizationImpl extends TransformationImpl implements Canonicalization { /** * Create a new CanonicalizationTransformImpl object. * * @param algorithmURI The canonicalization algorithm URI. */ public CanonicalizationImpl(String algorithmURI) { setAlgorithmURI(algorithmURI); } /** * Compare this object to another Canonicalization. * * @param other The object to compare this * Canonicalization to. * @return true, if other is a * Canonicalization and the algorithm URIs match, otherwise * false. * @see java.lang.Object#equals(Object) */ public boolean equals(Object other) { if (other instanceof Canonicalization) { Canonicalization c14n = (Canonicalization) other; return getAlgorithmURI().equals(c14n.getAlgorithmURI()); } return false; } }