/** * Sets the name of the medium on which the resource can be received. * * @param newValue the new name. */ public void setName(final MediumName newValue) { checkWritePermission(name); name = newValue; }
/** * Sets a description of other limitations or requirements for using the medium. * * @param newValue the new medium note. */ public void setMediumNote(final InternationalString newValue) { checkWritePermission(mediumNote); mediumNote = newValue; }
/** * Sets the name of the medium on which the resource can be received. * * @param newValue the new name. */ public void setName(final MediumName newValue) { checkWritePermission(); name = newValue; }
/** * Sets the units of measure for the recording density. * * @param newValue the new density units. */ public void setDensityUnits(final Unit<?> newValue) { checkWritePermission(); densityUnits = newValue; }
/** * Sets a description of other limitations or requirements for using the medium. * * @param newValue the new medium note. */ public void setMediumNote(final InternationalString newValue) { checkWritePermission(); mediumNote = newValue; }
/** * Sets the units of measure for the recording density. * * @param newValue the new density units. */ public void setDensityUnits(final Unit<?> newValue) { checkWritePermission(densityUnits); densityUnits = newValue; }
/** * Sets the number of items in the media identified. * * @param newValue the new volumes, or {@code null}. * @throws IllegalArgumentException if the given value is negative. */ public void setVolumes(final Integer newValue) { checkWritePermission(volumes); if (ensurePositive(DefaultMedium.class, "volumes", false, newValue)) { volumes = newValue; } }
/** * Sets the number of items in the media identified. * * @param newValue the new volumes, or {@code null}. * @throws IllegalArgumentException if the given value is negative. */ public void setVolumes(final Integer newValue) { checkWritePermission(); if (ensurePositive(DefaultMedium.class, "volumes", false, newValue)) { volumes = newValue; } }
/** * 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); } }
/** * Sets density at which the data is recorded. * The number shall be greater than zero. * * @param newValue the new density. * @throws IllegalArgumentException if the given value is NaN, zero or negative. * * @since 0.5 */ public void setDensity(final Double newValue) { checkWritePermission(); if (ensurePositive(DefaultMedium.class, "density", true, newValue)) { densities = writeCollection(LegacyPropertyAdapter.asCollection(newValue), densities, Double.class); } }
/** * Sets density at which the data is recorded. * The number shall be greater than zero. * * @param newValue the new density. * @throws IllegalArgumentException if the given value is NaN, zero or negative. * * @since 0.5 */ public void setDensity(final Double newValue) { checkWritePermission(valueIfDefined(densities)); if (ensurePositive(DefaultMedium.class, "density", true, newValue)) { densities = writeCollection(LegacyPropertyAdapter.asCollection(newValue), densities, Double.class); } }