DefaultSource changes for revisions 24867:24990

Replacement of long primitive type by RepresentativeFraction. This change has been forced by a GeoAPI change. Reverting this change causes a compilation failure, which is resolved by restoring the RepresentativeFraction values as required by GeoAPI interfaces. So rewriting this contribution produces identical result regarding this type.

The setScaleDenominator(int) method has been removed.

Action: all contributions forced by changes in GeoAPI interfaces (mostly import statements and method signatures) have been rewritten from scratch by creating an empty Java class implementing the interface, clicking on the "Implement all abstract methods" contextual menu in NetBeans, removing the <? extends> part in parameterized type of collections, adding the synchronized keyword (for now) and finally adding the corresponding private fields. This action has been committed in the Apache SIS JDK7 branch at revision 1458238.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r24867:24990 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/lineage/SourceImpl.java
Revision 24867Revision 24990
// OpenGIS dependencies
import org.opengis.metadata.citation.Citation;
import org.opengis.metadata.extent.Extent;
import org.opengis.metadata.lineage.Source;
import org.opengis.metadata.lineage.ProcessStep;
import org.opengis.referencing.ReferenceSystem;
// OpenGIS dependencies
import org.opengis.metadata.citation.Citation;
import org.opengis.metadata.extent.Extent;
import org.opengis.metadata.identification.RepresentativeFraction;
import org.opengis.metadata.lineage.Source;
import org.opengis.metadata.lineage.ProcessStep;
import org.opengis.referencing.ReferenceSystem;
// Geotools dependencies
import org.geotools.metadata.iso.MetadataEntity;
import org.geotools.resources.Utilities;
// Geotools dependencies
import org.geotools.metadata.iso.MetadataEntity;
import org.geotools.metadata.iso.identification.RepresentativeFractionImpl;
import org.geotools.resources.Utilities;
/**
 * Denominator of the representative fraction on a source map.
 */
private long scaleDenominator;

/**
 * Spatial reference system used by the source data.
/**
 * Denominator of the representative fraction on a source map.
 */
private RepresentativeFraction scaleDenominator;

/**
 * Spatial reference system used by the source data.
/**
 * Returns the denominator of the representative fraction on a source map.
 */
public synchronized long getScaleDenominator()  {
    return scaleDenominator;
}

/**
 * Set the denominator of the representative fraction on a source map.
 */
public synchronized void setScaleDenominator(final long newValue)  {
    checkWritePermission();
    scaleDenominator = newValue;
}
/**
 * Returns the denominator of the representative fraction on a source map.
 */
public synchronized RepresentativeFraction getScaleDenominator()  {
    return scaleDenominator;
}

/**
 * Set the denominator of the representative fraction on a source map.
 */
public synchronized void setScaleDenominator(final int newValue)  {
    checkWritePermission();
    scaleDenominator = new RepresentativeFractionImpl( newValue );
}

/**
 * Set the denominator of the representative fraction on a source map.
 */
public synchronized void setScaleDenominator(final RepresentativeFraction newValue)  {
    checkWritePermission();
    scaleDenominator = newValue;
}