Package org.apache.sis.metadata.iso
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 org.apache.sis.internal.metadata.legacy.LegacyPropertyAdapter
elements
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sis.internal.metadata.legacy.LegacyPropertyAdapter
equals, getSingleton, hashCode, isEmpty, iterator, setValues, size, unwrap, update, validOrNull, warnIgnoredExtraneous, wrap
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
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 existingMetadataScope
instance with a free slot for the new value before to create a newDefaultMetadataScope
instance.- Specified by:
add
in interfaceCollection<L>
- Overrides:
add
in classLegacyPropertyAdapter<L,
DefaultMetadataScope> - Parameters:
newValue
- the element to add.- Returns:
true
if the element has been added.
-