/*
 *    GeoTools - OpenSource mapping toolkit
 *    http://geotools.org
 *    (C) 2005-2006, GeoTools Project Managment Committee (PMC)
 *    (C) 2005, Institut de Recherche pour le Développement
 *   
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License as published by the Free Software Foundation;
 *    version 2.1 of the License.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 */
package org.geotools.referencing.factory.epsg;


/**
 * Private structure for {@link DirectEpsgFactory#createBursaWolfParameters} usage.
 * 
 * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/referencing/src/main/java/org/geotools/referencing/factory/epsg/BursaWolfInfo.java $
 * @version $Id: BursaWolfInfo.java 25972 2007-06-21 13:38:35Z desruisseaux $
 * @author Martin Desruisseaux
 */
final class BursaWolfInfo {
    /** CO.COORD_OP_CODE        */ final String operation;
    /** CO.COORD_OP_METHOD_CODE */ final int    method;
    /** CRS1.DATUM_CODE         */ final String target;

    /** Fill a structure with the specified values. */
    BursaWolfInfo(final String operation, final int method, final String target) {
        this.operation = operation;
        this.method    = method;
        this.target    = target;
    }

    /**
     * MUST returns the operation code. This is required by {@link DirectEpsgFactory#sort}.
     */
    public String toString() {
        return operation;
    }
}
