Class IdentifierEPSG

  • All Implemented Interfaces:
    org.opengis.metadata.Identifier, org.opengis.referencing.ReferenceIdentifier

    final class IdentifierEPSG
    extends Wrapper
    A simple EPSG identifier made of only a code and a code space.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int code
      The EPSG code.
      • 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 
      Modifier Constructor Description
      private IdentifierEPSG​(int code)
      Creates a new identifier for the given EPSG code.
    • Field Detail

      • code

        private final int code
        The EPSG code.
    • Constructor Detail

      • IdentifierEPSG

        private IdentifierEPSG​(int code)
        Creates a new identifier for the given EPSG code.
    • Method Detail

      • wrap

        static java.util.Set<org.opengis.referencing.ReferenceIdentifier> wrap​(int code)
        Wraps the given EPSG code.
        Parameters:
        code - the EPSG code, or 0 if none
        Returns:
        the wrapper, or an empty set if the given EPSG code was 0
      • implementation

        java.lang.Object implementation()
        {@return the EPSG code}.
        Specified by:
        implementation in class Wrapper
      • getCodeSpace

        public java.lang.String getCodeSpace()
        {@return the code space, which is fixed to "EPSG"}.
        Specified by:
        getCodeSpace in interface org.opengis.referencing.ReferenceIdentifier
        Overrides:
        getCodeSpace in class Wrapper
      • getCode

        public java.lang.String getCode()
        {@return the string representation of the EPSG code}.
        Specified by:
        getCode in interface org.opengis.metadata.Identifier
        Specified by:
        getCode in class Wrapper
      • toString

        public java.lang.String toString()
        {@return the string representation of this identifier}.
        Overrides:
        toString in class Wrapper