DefaultGridSpatialRepresentation changes for revisions 24972:24973

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

The constructor modified by this commit does not exist anymore in Geotk/SIS.

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" -r24972:24973 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/spatial/GridSpatialRepresentationImpl.java
Revision 24972Revision 24973
/**
 * Number of independent spatial-temporal axes.
 */
private int numberOfDimensions;

/**
 * Information about spatial-temporal axis properties.
/**
 * Number of independent spatial-temporal axes.
 */
private Integer numberOfDimensions;

/**
 * Information about spatial-temporal axis properties.
                                 final CellGeometry cellGeometry,
                                 final boolean transformationParameterAvailable)
{
    setNumberOfDimensions               (numberOfDimensions);
    setAxisDimensionsProperties         (axisDimensionsProperties);
    setCellGeometry                     (cellGeometry);
                                 final CellGeometry cellGeometry,
                                 final boolean transformationParameterAvailable)
{
    this(new Integer(numberOfDimensions),
         axisDimensionsProperties,
         cellGeometry,
         transformationParameterAvailable);
}

/**
 * Creates a grid spatial representation initialized to the given values.
 */
public GridSpatialRepresentationImpl(final Integer numberOfDimensions,
                                 final List axisDimensionsProperties,
                                 final CellGeometry cellGeometry,
                                 final boolean transformationParameterAvailable)
{
    setNumberOfDimensions               (numberOfDimensions);
    setAxisDimensionsProperties         (axisDimensionsProperties);
    setCellGeometry                     (cellGeometry);
/**
 * Number of independent spatial-temporal axes.
 */
public int getNumberOfDimensions() {
    return numberOfDimensions;
}

/**
 * Set the number of independent spatial-temporal axes.
 */
public synchronized void setNumberOfDimensions(final int newValue) {
    checkWritePermission();
    numberOfDimensions = newValue;
}
/**
 * Number of independent spatial-temporal axes.
 */
public Integer getNumberOfDimensions() {
    return numberOfDimensions;
}

/**
 * Set the number of independent spatial-temporal axes.
 */
public synchronized void setNumberOfDimensions(final Integer newValue) {
    checkWritePermission();
    numberOfDimensions = newValue;
}