AbstractParameterValue changes for revisions 7705:7846

The javadoc added by this commit has been removed.

All other changes are the consequences of class renaming from GeneralParameterValue to AbstractParameter. A class renaming was necessary for avoiding a name clash with GeoAPI, and the Abstract prefix is probably the most widely used convention in JDK and open source libraries. SIS takes a similar but not identical name: AbstractParameterValue instead of AbstractParameter. Anyone looking for renaming this class would probably come to a similar name.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r7705:7846 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/parameter/AbstractParameter.java
Revision 7705Revision 7846
package org.geotools.parameter;

// J2SE dependencies
import java.util.Map;
import java.io.Serializable;

// OpenGIS dependencies
import org.opengis.parameter.GeneralOperationParameter;

// Geotools dependencies
import org.geotools.resources.Utilities;
package org.geotools.parameter;

// J2SE dependencies
import java.io.Serializable;

// OpenGIS dependencies
import org.opengis.parameter.GeneralParameterDescriptor;

// Geotools dependencies
import org.geotools.resources.Utilities;
/**
 * Abstract parameter value or group of parameter values.
 *
 * @version $Id$
 * @author Martin Desruisseaux
 *
 * @see org.geotools.parameter.GeneralOperationParameter
 */
public class GeneralParameterValue implements org.opengis.parameter.GeneralParameterValue, Serializable {
    /**
     * Serial number for interoperability with different versions.
     */
/**
 * Abstract parameter value or group of parameter values.
 * <p>
 * This maps directly to opengis GeneralParameterValue, the name is changed to protect
 * developers from confusing the two. This class does need to be subclassed before
 * it is considered useable.
 * </p>
 * @version $Id$
 * @author Martin Desruisseaux
 *
 * @see org.geotools.parameter.AbstractParameterDescriptor
 */
public abstract class AbstractParameter implements org.opengis.parameter.GeneralParameterValue, Serializable {
    /**
     * Serial number for interoperability with different versions.
     */
/**
 * The abstract definition of this parameter or group of parameters.
 */
final GeneralOperationParameter descriptor;

/**
 * Construct a parameter value from the specified descriptor.
/**
 * The abstract definition of this parameter or group of parameters.
 */
final GeneralParameterDescriptor descriptor;

/**
 * Construct a parameter value from the specified descriptor.
 *
 * @param descriptor The abstract definition of this parameter or group of parameters.
 */
protected GeneralParameterValue(GeneralOperationParameter descriptor) {
    this.descriptor = descriptor;
    ensureNonNull("descriptor", descriptor);
}
 *
 * @param descriptor The abstract definition of this parameter or group of parameters.
 */
protected AbstractParameter(GeneralParameterDescriptor descriptor) {
    this.descriptor = descriptor;
    ensureNonNull("descriptor", descriptor);
}
 *
 * @return The abstract definition of this parameter or group of parameters.
 */
public GeneralOperationParameter getDescriptor() {
    return descriptor;
}
 *
 * @return The abstract definition of this parameter or group of parameters.
 */
public GeneralParameterDescriptor getDescriptor() {
    return descriptor;
}
 */
public boolean equals(final Object object) {
    if (object!=null && object.getClass().equals(getClass())) {
        final GeneralParameterValue that = (GeneralParameterValue) object;
        return Utilities.equals(this.descriptor, that.descriptor);
    }
    return false;
 */
public boolean equals(final Object object) {
    if (object!=null && object.getClass().equals(getClass())) {
        final AbstractParameter that = (AbstractParameter) object;
        return Utilities.equals(this.descriptor, that.descriptor);
    }
    return false;