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 classSame than the above, but as an immutable entry. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFor cross-version compatibility.Fields inherited from interface org.opengis.metadata.Identifier
AUTHORITY_KEY, CODE_KEYFields 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.CitationReturns 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.Returnsnullsince 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:
getAuthorityin interfaceorg.opengis.metadata.Identifier
-
getCode
Returns the identifier code, which is the value of this entry.- Specified by:
getCodein interfaceorg.opengis.metadata.Identifier
-
getCodeSpace
Infers a code space from the authority.- Specified by:
getCodeSpacein interfaceorg.opengis.referencing.ReferenceIdentifier- Returns:
- the code space, or
nullif none. - Since:
- 0.5
-
getVersion
Returnsnullsince this class does not hold version information.- Specified by:
getVersionin interfaceorg.opengis.referencing.ReferenceIdentifier- Returns:
null.- Since:
- 0.5
-