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 Classes
    Modifier and Type
    Class
    Description
    (package private) static final class 
    Same than the above, but as an immutable entry.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private 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

    Constructors
    Constructor
    Description
    IdentifierMapEntry(org.opengis.metadata.citation.Citation authority, String code)
    Creates a new entry for the given authority and code.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opengis.metadata.citation.Citation
    Returns the identifier namespace, which is the key of this entry.
    Returns the identifier code, which is the value of this entry.
    Infers a code space from the authority.
    Returns null since this class does not hold version information.

    Methods inherited from class java.util.AbstractMap.SimpleEntry

    equals, getKey, getValue, hashCode, setValue, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For 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 interface org.opengis.metadata.Identifier
    • getCode

      public String getCode()
      Returns the identifier code, which is the value of this entry.
      Specified by:
      getCode in interface org.opengis.metadata.Identifier
    • getCodeSpace

      public String getCodeSpace()
      Infers a code space from the authority.
      Specified by:
      getCodeSpace in interface org.opengis.referencing.ReferenceIdentifier
      Returns:
      the code space, or null if none.
      Since:
      0.5
    • getVersion

      public String getVersion()
      Returns null since this class does not hold version information.
      Specified by:
      getVersion in interface org.opengis.referencing.ReferenceIdentifier
      Returns:
      null.
      Since:
      0.5