/** * Sets the description of the attribute described by the measurement value. * * @param newValue the new attribute description. */ public void setAttributeDescription(final RecordType newValue) { checkWritePermission(); attributeDescription = newValue; }
/** * Sets the identifier for the level of processing that has been applied to the resource. * * @param newValue the new identifier for the level of processing. * * @since 0.5 */ public void setProcessingLevelCode(final Identifier newValue) { checkWritePermission(); processingLevelCode = newValue; }
/** * Sets the description of the attribute described by the measurement value. * * @param newValue the new attribute description. */ public void setAttributeDescription(final RecordType newValue) { checkWritePermission(attributeDescription); attributeDescription = newValue; }
/** * Sets the identifier for the level of processing that has been applied to the resource. * * @param newValue the new identifier for the level of processing. * * @since 0.5 */ public void setProcessingLevelCode(final Identifier newValue) { checkWritePermission(processingLevelCode); processingLevelCode = newValue; }
/** * Sets the information on the dimensions of the cell measurement value. * This method stores the values in the {@linkplain #getAttributeGroups() attribute groups}. * * @param newValues the new dimensions. * * @deprecated As of ISO 19115:2014, moved to {@link DefaultAttributeGroup#setAttributes(Collection)}. */ @Deprecated public void setDimensions(final Collection<? extends RangeDimension> newValues) { checkWritePermission(); ((LegacyPropertyAdapter<RangeDimension,?>) getDimensions()).setValues(newValues); }
/** * Sets the information on the dimensions of the cell measurement value. * This method stores the values in the {@linkplain #getAttributeGroups() attribute groups}. * * @param newValues the new dimensions. * * @deprecated As of ISO 19115:2014, moved to {@link DefaultAttributeGroup#setAttributes(Collection)}. */ @Deprecated public void setDimensions(final Collection<? extends RangeDimension> newValues) { checkWritePermission(valueIfDefined(attributeGroups)); ((LegacyPropertyAdapter<RangeDimension,?>) getDimensions()).setValues(newValues); }
/** * Sets the type of information represented by the cell value. * This method stores the value in the first writable {@linkplain #getAttributeGroups() attribute groups}. * * @param newValue the new content type. * * @deprecated As of ISO 19115:2014, moved to {@link DefaultAttributeGroup#setContentTypes(Collection)}. */ @Deprecated public void setContentType(final CoverageContentType newValue) { checkWritePermission(); final Collection<CoverageContentType> newValues = LegacyPropertyAdapter.asCollection(newValue); Collection<DefaultAttributeGroup> groups = attributeGroups; if (groups != null) { for (final DefaultAttributeGroup group : groups) { group.setContentTypes(newValues); return; // Actually stop at the first instance. } } final DefaultAttributeGroup group = new DefaultAttributeGroup(); group.setContentTypes(newValues); if (groups != null) { groups.add(group); } else { groups = Collections.<DefaultAttributeGroup>singleton(group); } setAttributeGroups(groups); }
/** * Sets the type of information represented by the cell value. * This method stores the value in the first writable {@linkplain #getAttributeGroups() attribute groups}. * * @param newValue the new content type. * * @deprecated As of ISO 19115:2014, moved to {@link DefaultAttributeGroup#setContentTypes(Collection)}. */ @Deprecated public void setContentType(final CoverageContentType newValue) { checkWritePermission(valueIfDefined(attributeGroups)); final Collection<CoverageContentType> newValues = LegacyPropertyAdapter.asCollection(newValue); Collection<DefaultAttributeGroup> groups = attributeGroups; if (groups != null) { for (final DefaultAttributeGroup group : groups) { group.setContentTypes(newValues); return; // Actually stop at the first instance. } } final DefaultAttributeGroup group = new DefaultAttributeGroup(); group.setContentTypes(newValues); if (groups != null) { groups.add(group); } else { groups = Collections.<DefaultAttributeGroup>singleton(group); } setAttributeGroups(groups); }