@Override protected DefaultAssociatedResource wrap(final AggregateInformation value) { return DefaultAssociatedResource.castOrCopy(value); }
@Override protected DefaultAssociatedResource wrap(final AggregateInformation value) { return DefaultAssociatedResource.castOrCopy(value); }
/** * Sets aggregate dataset information. * * @param newValues the new aggregation info. * * @deprecated As of ISO 19115:2014, replaced by {@link #setAssociatedResources(Collection)}. */ @Deprecated public void setAggregationInfo(final Collection<? extends AggregateInformation> newValues) { checkWritePermission(); /* * We can not invoke getAggregationInfo().setValues(newValues) because this method * is invoked by the constructor, which is itself invoked at JAXB marshalling time, * in which case getAggregationInfo() may return null. */ List<DefaultAssociatedResource> r = null; if (newValues != null) { r = new ArrayList<DefaultAssociatedResource>(newValues.size()); for (final AggregateInformation value : newValues) { r.add(DefaultAssociatedResource.castOrCopy(value)); } } setAssociatedResources(r); } }
/** * Sets aggregate dataset information. * * @param newValues the new aggregation info. * * @deprecated As of ISO 19115:2014, replaced by {@link #setAssociatedResources(Collection)}. */ @Deprecated public void setAggregationInfo(final Collection<? extends AggregateInformation> newValues) { checkWritePermission(); /* * We can not invoke getAggregationInfo().setValues(newValues) because this method * is invoked by the constructor, which is itself invoked at JAXB marshalling time, * in which case getAggregationInfo() may return null. */ List<DefaultAssociatedResource> r = null; if (newValues != null) { r = new ArrayList<DefaultAssociatedResource>(newValues.size()); for (final AggregateInformation value : newValues) { r.add(DefaultAssociatedResource.castOrCopy(value)); } } setAssociatedResources(r); }