DefaultImageDescription changes for revisions 24972:24973

Replacement of Number type by Double and boolean by Boolean. This change has been forced by a GeoAPI change. Reverting this change causes a compilation failure, which is resolved by restoring the Double values as required by GeoAPI interfaces. So rewriting this contribution produces identical result.

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/content/ImageDescriptionImpl.java
Revision 24972Revision 24973
 * intersection of the optical line of sight with the Earth’s surface. For images from a
 * scanning device, refer to the centre pixel of the image.
 */
private Number illuminationElevationAngle;

/**
 * Illumination azimuth measured in degrees clockwise from true north at the time the
 * image is taken. For images from a scanning device, refer to the centre pixel of the image.
 */
private Number illuminationAzimuthAngle;

/**
 * Conditions affected the image.
 * intersection of the optical line of sight with the Earth’s surface. For images from a
 * scanning device, refer to the centre pixel of the image.
 */
private Double illuminationElevationAngle;

/**
 * Illumination azimuth measured in degrees clockwise from true north at the time the
 * image is taken. For images from a scanning device, refer to the centre pixel of the image.
 */
private Double illuminationAzimuthAngle;

/**
 * Conditions affected the image.
/**
 * Area of the dataset obscured by clouds, expressed as a percentage of the spatial extent.
 */
private Number cloudCoverPercentage;

/**
 * Image distributor’s code that identifies the level of radiometric and geometric
/**
 * Area of the dataset obscured by clouds, expressed as a percentage of the spatial extent.
 */
private Double cloudCoverPercentage;

/**
 * Image distributor’s code that identifies the level of radiometric and geometric
 * Indication of whether or not the radiometric calibration information for generating the
 * radiometrically calibrated standard data product is available.
 */
private boolean radiometricCalibrationDataAvailable;

/**
 * Indication of whether or not constants are available which allow for camera calibration
 * corrections.
 */
private boolean cameraCalibrationInformationAvailable;

/**
 * Indication of whether or not Calibration Reseau information is available.
 */
private boolean filmDistortionInformationAvailable;

/**
 * Indication of whether or not lens aberration correction information is available.
 */
private boolean lensDistortionInformationAvailable;

/**
 * Constructs an initially empty image description.
 * Indication of whether or not the radiometric calibration information for generating the
 * radiometrically calibrated standard data product is available.
 */
private Boolean radiometricCalibrationDataAvailable;

/**
 * Indication of whether or not constants are available which allow for camera calibration
 * corrections.
 */
private Boolean cameraCalibrationInformationAvailable;

/**
 * Indication of whether or not Calibration Reseau information is available.
 */
private Boolean filmDistortionInformationAvailable;

/**
 * Indication of whether or not lens aberration correction information is available.
 */
private Boolean lensDistortionInformationAvailable;

/**
 * Constructs an initially empty image description.
 * intersection of the optical line of sight with the Earth’s surface. For images from a
 * scanning device, refer to the centre pixel of the image.
 */
public Number getIlluminationElevationAngle() {
    return illuminationElevationAngle;
}
 * intersection of the optical line of sight with the Earth’s surface. For images from a
 * scanning device, refer to the centre pixel of the image.
 */
public Double getIlluminationElevationAngle() {
    return illuminationElevationAngle;
}
 * intersection of the optical line of sight with the Earth’s surface. For images from a
 * scanning device, refer to the centre pixel of the image.
 */
public synchronized void setIlluminationElevationAngle(final Number newValue) {
    checkWritePermission();
    illuminationElevationAngle = newValue;
}
 * intersection of the optical line of sight with the Earth’s surface. For images from a
 * scanning device, refer to the centre pixel of the image.
 */
public synchronized void setIlluminationElevationAngle(final Double newValue) {
    checkWritePermission();
    illuminationElevationAngle = newValue;
}
 * the image is taken. For images from a scanning device, refer to the centre pixel of the
 * image.
 */
public Number getIlluminationAzimuthAngle() {
    return illuminationAzimuthAngle;
}
 * the image is taken. For images from a scanning device, refer to the centre pixel of the
 * image.
 */
public Double getIlluminationAzimuthAngle() {
    return illuminationAzimuthAngle;
}
 * Set the illumination azimuth measured in degrees clockwise from true north at the time the
 * image is taken. For images from a scanning device, refer to the centre pixel of the image.
 */
public synchronized void setIlluminationAzimuthAngle(final Number newValue) {
    checkWritePermission();
    illuminationAzimuthAngle = newValue;
}
 * Set the illumination azimuth measured in degrees clockwise from true north at the time the
 * image is taken. For images from a scanning device, refer to the centre pixel of the image.
 */
public synchronized void setIlluminationAzimuthAngle(final Double newValue) {
    checkWritePermission();
    illuminationAzimuthAngle = newValue;
}
 * Returns the area of the dataset obscured by clouds, expressed as a percentage of the spatial
 * extent.
 */
public Number getCloudCoverPercentage() {
    return cloudCoverPercentage;
}
 * Returns the area of the dataset obscured by clouds, expressed as a percentage of the spatial
 * extent.
 */
public Double getCloudCoverPercentage() {
    return cloudCoverPercentage;
}
 * Set the area of the dataset obscured by clouds, expressed as a percentage of the spatial
 * extent.
 */
public synchronized void setCloudCoverPercentage(final Number newValue) {
    checkWritePermission();
    cloudCoverPercentage = newValue;
}
 * Set the area of the dataset obscured by clouds, expressed as a percentage of the spatial
 * extent.
 */
public synchronized void setCloudCoverPercentage(final Double newValue) {
    checkWritePermission();
    cloudCoverPercentage = newValue;
}
 * Returns theiIndication of whether or not the radiometric calibration information for
 * generating the radiometrically calibrated standard data product is available.
 */
public boolean isRadiometricCalibrationDataAvailable() {
    return radiometricCalibrationDataAvailable;
}
 * Returns theiIndication of whether or not the radiometric calibration information for
 * generating the radiometrically calibrated standard data product is available.
 */
public Boolean isRadiometricCalibrationDataAvailable() {
    return radiometricCalibrationDataAvailable;
}
 * Set the indication of whether or not the radiometric calibration information for generating
 * the radiometrically calibrated standard data product is available.
 */
public synchronized void setRadiometricCalibrationDataAvailable(final boolean newValue) {
    checkWritePermission();
    radiometricCalibrationDataAvailable = newValue;
}
 * Set the indication of whether or not the radiometric calibration information for generating
 * the radiometrically calibrated standard data product is available.
 */
public synchronized void setRadiometricCalibrationDataAvailable(final Boolean newValue) {
    checkWritePermission();
    radiometricCalibrationDataAvailable = newValue;
}
 * Returns the indication of whether or not constants are available which allow for camera
 * calibration corrections.
 */
public boolean isCameraCalibrationInformationAvailable() {
    return cameraCalibrationInformationAvailable;
}
 * Returns the indication of whether or not constants are available which allow for camera
 * calibration corrections.
 */
public Boolean isCameraCalibrationInformationAvailable() {
    return cameraCalibrationInformationAvailable;
}
 * Set the indication of whether or not constants are available which allow for camera
 * calibration corrections.
 */
public synchronized void setCameraCalibrationInformationAvailable(final boolean newValue) {
    checkWritePermission();
    cameraCalibrationInformationAvailable = newValue;
}
 * Set the indication of whether or not constants are available which allow for camera
 * calibration corrections.
 */
public synchronized void setCameraCalibrationInformationAvailable(final Boolean newValue) {
    checkWritePermission();
    cameraCalibrationInformationAvailable = newValue;
}
/**
 * Returns the indication of whether or not Calibration Reseau information is available.
 */
public boolean isFilmDistortionInformationAvailable() {
    return filmDistortionInformationAvailable;
}

/**
 * Set the indication of whether or not Calibration Reseau information is available.
 */
public synchronized void setFilmDistortionInformationAvailable(final boolean newValue) {
    checkWritePermission();
    filmDistortionInformationAvailable = newValue;
}
/**
 * Returns the indication of whether or not Calibration Reseau information is available.
 */
public Boolean isFilmDistortionInformationAvailable() {
    return filmDistortionInformationAvailable;
}

/**
 * Set the indication of whether or not Calibration Reseau information is available.
 */
public synchronized void setFilmDistortionInformationAvailable(final Boolean newValue) {
    checkWritePermission();
    filmDistortionInformationAvailable = newValue;
}
/**
 * Returns the indication of whether or not lens aberration correction information is available.
 */
public boolean isLensDistortionInformationAvailable() {
    return lensDistortionInformationAvailable;
}

/**
 * Set the indication of whether or not lens aberration correction information is available.
 */
public synchronized void setLensDistortionInformationAvailable(final boolean newValue) {
    checkWritePermission();
    lensDistortionInformationAvailable = newValue;
}
/**
 * Returns the indication of whether or not lens aberration correction information is available.
 */
public Boolean isLensDistortionInformationAvailable() {
    return lensDistortionInformationAvailable;
}

/**
 * Set the indication of whether or not lens aberration correction information is available.
 */
public synchronized void setLensDistortionInformationAvailable(final Boolean newValue) {
    checkWritePermission();
    lensDistortionInformationAvailable = newValue;
}
 */
protected void freeze() {
    super.freeze();
    illuminationElevationAngle = (Number)     unmodifiable(illuminationElevationAngle);
    illuminationAzimuthAngle   = (Number)     unmodifiable(illuminationAzimuthAngle);
    imageQualityCode           = (Identifier) unmodifiable(imageQualityCode);
    cloudCoverPercentage       = (Number)     unmodifiable(cloudCoverPercentage);
    processingLevelCode        = (Identifier) unmodifiable(processingLevelCode);
}
 */
protected void freeze() {
    super.freeze();
    illuminationElevationAngle = (Double)     unmodifiable(illuminationElevationAngle);
    illuminationAzimuthAngle   = (Double)     unmodifiable(illuminationAzimuthAngle);
    imageQualityCode           = (Identifier) unmodifiable(imageQualityCode);
    cloudCoverPercentage       = (Double)     unmodifiable(cloudCoverPercentage);
    processingLevelCode        = (Identifier) unmodifiable(processingLevelCode);
}