/** * Returns the method used to write to the medium. * * @return method used to write to the medium, or {@code null}. */ @Override @XmlElement(name = "mediumFormat") public Collection<MediumFormat> getMediumFormats() { return mediumFormats = nonNullCollection(mediumFormats, MediumFormat.class); }
/** * Returns the method used to write to the medium. * * @return method used to write to the medium, or {@code null}. */ @Override @XmlElement(name = "mediumFormat") public Collection<MediumFormat> getMediumFormats() { return mediumFormats = nonNullCollection(mediumFormats, MediumFormat.class); }
/** * @deprecated As of ISO 19115:2014, replaced by {@link #getDensity()}. * * @return density at which the data is recorded, or {@code null}. */ @Override @Deprecated @XmlElement(name = "density") @Dependencies("getDensity") public Collection<Double> getDensities() { return densities = nonNullCollection(densities, Double.class); }
/** * @deprecated As of ISO 19115:2014, replaced by {@link #getDensity()}. * * @return density at which the data is recorded, or {@code null}. */ @Override @Deprecated @Dependencies("getDensity") @XmlElement(name = "density", namespace = LegacyNamespaces.GMD) public Collection<Double> getDensities() { if (!FilterByVersion.LEGACY_METADATA.accept()) return null; return densities = nonNullCollection(densities, Double.class); }
/** * Sets a unique identifier for an instance of the medium. * * @param newValue the new identifier. * * @since 0.5 */ public void setIdentifier(final Identifier newValue) { checkWritePermission(); identifiers = nonNullCollection(identifiers, Identifier.class); NonMarshalledAuthority.setMarshallable(identifiers, newValue); } }