Package org.apache.sis.internal.jaxb
Class IdentifierMapEntry
java.lang.Object
java.util.AbstractMap.SimpleEntry<org.opengis.metadata.citation.Citation,String>
org.apache.sis.internal.jaxb.IdentifierMapEntry
- All Implemented Interfaces:
Serializable
,Map.Entry<org.opengis.metadata.citation.Citation,
,String> org.opengis.metadata.Identifier
,org.opengis.referencing.ReferenceIdentifier
final class IdentifierMapEntry
extends AbstractMap.SimpleEntry<org.opengis.metadata.citation.Citation,String>
implements org.opengis.referencing.ReferenceIdentifier
An entry in
IdentifierMap
. This class implements both the Map.Entry
interface (for inclusion in the set to be returned by IdentifierMapAdapter.entrySet()
) and the
Identifier
interface (for inclusion in the IdentifierMapAdapter.identifiers
collection).- Since:
- 0.3
- Version:
- 0.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
Same than the above, but as an immutable entry. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility.Fields inherited from interface org.opengis.metadata.Identifier
AUTHORITY_KEY, CODE_KEY
Fields inherited from interface org.opengis.referencing.ReferenceIdentifier
CODESPACE_KEY, VERSION_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionIdentifierMapEntry
(org.opengis.metadata.citation.Citation authority, String code) Creates a new entry for the given authority and code. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.metadata.citation.Citation
Returns the identifier namespace, which is the key of this entry.getCode()
Returns the identifier code, which is the value of this entry.Infers a code space from the authority.Returnsnull
since this class does not hold version information.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
IdentifierMapEntry
IdentifierMapEntry(org.opengis.metadata.citation.Citation authority, String code) Creates a new entry for the given authority and code.
-
-
Method Details
-
getAuthority
public org.opengis.metadata.citation.Citation getAuthority()Returns the identifier namespace, which is the key of this entry.- Specified by:
getAuthority
in interfaceorg.opengis.metadata.Identifier
-
getCode
Returns the identifier code, which is the value of this entry.- Specified by:
getCode
in interfaceorg.opengis.metadata.Identifier
-
getCodeSpace
Infers a code space from the authority.- Specified by:
getCodeSpace
in interfaceorg.opengis.referencing.ReferenceIdentifier
- Returns:
- the code space, or
null
if none. - Since:
- 0.5
-
getVersion
Returnsnull
since this class does not hold version information.- Specified by:
getVersion
in interfaceorg.opengis.referencing.ReferenceIdentifier
- Returns:
null
.- Since:
- 0.5
-