public interface IdentifierMap extends Map<Citation,String>
Identifier where
key is the identifier authority and the value is the
identifier code.
Some XML identifiers are difficult to handle as Identifier objects. Those identifiers are
rather handled using specialized classes like XLink. This IdentifierMap interface
mirrors the standard get and put methods
with specialized methods, in order to fetch and store identifiers as objects of the specialized
class.
IdentifiedObject.getIdentifierMap()Defined in the sis-utility module
Map.Entry<K,V>| Modifier and Type | Method and Description |
|---|---|
<T> T |
getSpecialized(IdentifierSpace<T> authority)
Returns the identifier associated to the given namespace,
or
null if this map contains no mapping of the
specialized type for the namespace. |
<T> T |
putSpecialized(IdentifierSpace<T> authority,
T value)
Associates the given identifier with the given namespace in this map
(optional operation).
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values<T> T getSpecialized(IdentifierSpace<T> authority)
null if this map contains no mapping of the
specialized type for the namespace.T - the identifier type.authority - the namespace whose associated identifier is to be returned.null if this map contains no mapping for the namespace.<T> T putSpecialized(IdentifierSpace<T> authority, T value) throws UnsupportedOperationException
T - the identifier type.authority - the namespace with which the given identifier is to be associated.value - the identifier to be associated with the given namespace.authority, or null
if there was no mapping of the specialized type for authority.UnsupportedOperationException - if the identifier map is unmodifiable.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.