Class MetadataScopeAdapter<L>
java.lang.Object
java.util.AbstractCollection<L>
org.apache.sis.internal.metadata.legacy.LegacyPropertyAdapter<L, DefaultMetadataScope>
org.apache.sis.metadata.iso.MetadataScopeAdapter<L>
- All Implemented Interfaces:
Iterable<L>, Collection<L>
A specialization of
LegacyPropertyAdapter which will try to merge the
"hierarchyLevel" and "hierarchyLevelName" properties in the same
DefaultMetadataScope instance.- Since:
- 0.5
- Version:
- 0.5
-
Field Summary
Fields inherited from class LegacyPropertyAdapter
elements -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LegacyPropertyAdapter
equals, getSingleton, hashCode, isEmpty, iterator, setValues, size, unwrap, update, validOrNull, warnIgnoredExtraneous, wrapMethods inherited from class AbstractCollection
addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, spliterator, stream
-
Constructor Details
-
MetadataScopeAdapter
MetadataScopeAdapter(Collection<DefaultMetadataScope> scopes) - Parameters:
scopes- Value ofDefaultMetadata.getMetadataScopes().
-
-
Method Details
-
add
Invoked (indirectly) by JAXB when adding a new scope code or scope name. This implementation searches for an existingMetadataScopeinstance with a free slot for the new value before to create a newDefaultMetadataScopeinstance.- Specified by:
addin interfaceCollection<L>- Overrides:
addin classLegacyPropertyAdapter<L, DefaultMetadataScope>- Parameters:
newValue- the element to add.- Returns:
trueif the element has been added.
-