/** * Sets the maximum altitude value. * * @param newValue the new maximum altitude value. */ public void setMaxAltitude(final Double newValue) { checkWritePermission(); maxAltitude = newValue; }
/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <mac:MI_EnvironmentalRecord>} XML element. * This is the value or a copy of the value given in argument to the {@code wrap} method. * * @return the metadata to be marshalled. */ @XmlElementRef public DefaultEnvironmentalRecord getElement() { return DefaultEnvironmentalRecord.castOrCopy(metadata); }
/** * Returns a SIS metadata implementation with the values of the given arbitrary implementation. * This method performs the first applicable action in the following choices: * * <ul> * <li>If the given object is {@code null}, then this method returns {@code null}.</li> * <li>Otherwise if the given object is already an instance of * {@code DefaultEnvironmentalRecord}, then it is returned unchanged.</li> * <li>Otherwise a new {@code DefaultEnvironmentalRecord} instance is created using the * {@linkplain #DefaultEnvironmentalRecord(EnvironmentalRecord) copy constructor} * and returned. Note that this is a <cite>shallow</cite> copy operation, since the other * metadata contained in the given object are not recursively copied.</li> * </ul> * * @param object the object to get as a SIS implementation, or {@code null} if none. * @return a SIS implementation containing the values of the given object (may be the * given object itself), or {@code null} if the argument was null. */ public static DefaultEnvironmentalRecord castOrCopy(final EnvironmentalRecord object) { if (object == null || object instanceof DefaultEnvironmentalRecord) { return (DefaultEnvironmentalRecord) object; } return new DefaultEnvironmentalRecord(object); }
/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <gmi:MI_EnvironmentalRecord>} XML element. * This is the value or a copy of the value given in argument to the {@code wrap} method. * * @return the metadata to be marshalled. */ @XmlElementRef public DefaultEnvironmentalRecord getElement() { return DefaultEnvironmentalRecord.castOrCopy(metadata); }
/** * Returns a SIS metadata implementation with the values of the given arbitrary implementation. * This method performs the first applicable action in the following choices: * * <ul> * <li>If the given object is {@code null}, then this method returns {@code null}.</li> * <li>Otherwise if the given object is already an instance of * {@code DefaultEnvironmentalRecord}, then it is returned unchanged.</li> * <li>Otherwise a new {@code DefaultEnvironmentalRecord} instance is created using the * {@linkplain #DefaultEnvironmentalRecord(EnvironmentalRecord) copy constructor} * and returned. Note that this is a <cite>shallow</cite> copy operation, since the other * metadata contained in the given object are not recursively copied.</li> * </ul> * * @param object the object to get as a SIS implementation, or {@code null} if none. * @return a SIS implementation containing the values of the given object (may be the * given object itself), or {@code null} if the argument was null. */ public static DefaultEnvironmentalRecord castOrCopy(final EnvironmentalRecord object) { if (object == null || object instanceof DefaultEnvironmentalRecord) { return (DefaultEnvironmentalRecord) object; } return new DefaultEnvironmentalRecord(object); }
/** * Sets the average air temperature along the flight pass during the photo flight. * * @param newValue the new average air temperature value. */ public void setAverageAirTemperature(final Double newValue) { checkWritePermission(averageAirTemperature); averageAirTemperature = newValue; }
/** * Sets the maximum altitude value. * * @param newValue the new maximum altitude value. */ public void setMaxAltitude(final Double newValue) { checkWritePermission(maxAltitude); maxAltitude = newValue; }
/** * Sets the meteorological conditions in the photo flight area, in particular clouds, snow and wind. * * @param newValue the meteorological conditions value. */ public void setMeteorologicalConditions(final InternationalString newValue) { checkWritePermission(); meteorologicalConditions = newValue; } }
/** * Sets the average air temperature along the flight pass during the photo flight. * * @param newValue the new average air temperature value. */ public void setAverageAirTemperature(final Double newValue) { checkWritePermission(); averageAirTemperature = newValue; }
/** * Sets the meteorological conditions in the photo flight area, in particular clouds, snow and wind. * * @param newValue the meteorological conditions value. */ public void setMeteorologicalConditions(final InternationalString newValue) { checkWritePermission(meteorologicalConditions); meteorologicalConditions = newValue; } }
/** * Sets the maximum relative humidity along the flight pass during the photo flight. * * @param newValue the new maximum relative humidity, or {@code null}. * @throws IllegalArgumentException if the given value is out of range. */ public void setMaxRelativeHumidity(final Double newValue) { checkWritePermission(); if (ensureInRange(DefaultEnvironmentalRecord.class, "maxRelativeHumidity", 0, 100, newValue)) { maxRelativeHumidity = newValue; } }
/** * Sets the maximum relative humidity along the flight pass during the photo flight. * * @param newValue the new maximum relative humidity, or {@code null}. * @throws IllegalArgumentException if the given value is out of range. */ public void setMaxRelativeHumidity(final Double newValue) { checkWritePermission(maxRelativeHumidity); if (ensureInRange(DefaultEnvironmentalRecord.class, "maxRelativeHumidity", 0, 100, newValue)) { maxRelativeHumidity = newValue; } }