/** * Provides aggregate dataset information. * * @return aggregate dataset information. * * @deprecated As of ISO 19115:2014, replaced by {@link #getAssociatedResources()}. */ @Override @Deprecated @XmlElement(name = "aggregationInfo") @Dependencies("getAssociatedResources") public Collection<AggregateInformation> getAggregationInfo() { return new LegacyPropertyAdapter<AggregateInformation,DefaultAssociatedResource>(getAssociatedResources()) { @Override protected DefaultAssociatedResource wrap(final AggregateInformation value) { return DefaultAssociatedResource.castOrCopy(value); } @Override protected AggregateInformation unwrap(final DefaultAssociatedResource container) { if (container instanceof AggregateInformation) { return (AggregateInformation) container; } else { return new DefaultAggregateInformation(container); } } @Override protected boolean update(final DefaultAssociatedResource container, final AggregateInformation value) { return container == value; } }.validOrNull(); }
/** * Provides aggregate dataset information. * * @return aggregate dataset information. * * @deprecated As of ISO 19115:2014, replaced by {@link #getAssociatedResources()}. */ @Override @Deprecated @Dependencies("getAssociatedResources") @XmlElement(name = "aggregationInfo", namespace = LegacyNamespaces.GMD) public Collection<AggregateInformation> getAggregationInfo() { if (!FilterByVersion.LEGACY_METADATA.accept()) return null; return new LegacyPropertyAdapter<AggregateInformation,DefaultAssociatedResource>(getAssociatedResources()) { @Override protected DefaultAssociatedResource wrap(final AggregateInformation value) { return DefaultAssociatedResource.castOrCopy(value); } @Override protected AggregateInformation unwrap(final DefaultAssociatedResource container) { if (container instanceof AggregateInformation) { return (AggregateInformation) container; } else { return new DefaultAggregateInformation(container); } } @Override protected boolean update(final DefaultAssociatedResource container, final AggregateInformation value) { return container == value; } }.validOrNull(); }