Class Transliterator.Unicode

java.lang.Object
org.apache.sis.io.wkt.Transliterator
org.apache.sis.io.wkt.Transliterator.Unicode
All Implemented Interfaces:
Serializable
Enclosing class:
Transliterator

private static final class Transliterator.Unicode extends Transliterator
The Transliterator.IDENTITY implementation.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
  • Constructor Details

    • Unicode

      private Unicode()
  • Method Details

    • filter

      public String filter(String text)
      Performs no replacement.
      Overrides:
      filter in class Transliterator
      Parameters:
      text - the text to format without non-ASCII characters.
      Returns:
      the text to write in Well Known Text.
      See Also:
    • toShortAxisName

      public String toShortAxisName(org.opengis.referencing.cs.CoordinateSystem cs, org.opengis.referencing.cs.AxisDirection direction, String name)
      Returns the axis name as-is.
      Overrides:
      toShortAxisName in class Transliterator
      Parameters:
      cs - the enclosing coordinate system, or null if unknown.
      direction - the direction of the axis to format.
      name - the axis name, to be eventually replaced by this method.
      Returns:
      the axis name to format, or null if the name shall be omitted.
      See Also:
    • toLongAxisName

      public String toLongAxisName(String csType, org.opengis.referencing.cs.AxisDirection direction, String name)
      Returns the axis name as-is.
      Overrides:
      toLongAxisName in class Transliterator
      Parameters:
      csType - the type of the coordinate system, or null if unknown.
      direction - the parsed axis direction.
      name - the parsed axis abbreviation, to be eventually replaced by this method.
      Returns:
      the axis name to use. Cannot be null.
    • toLatinAbbreviation

      public String toLatinAbbreviation(org.opengis.referencing.cs.CoordinateSystem cs, org.opengis.referencing.cs.AxisDirection direction, String abbreviation)
      Returns the abbreviation as-is.
      Overrides:
      toLatinAbbreviation in class Transliterator
      Parameters:
      cs - the enclosing coordinate system, or null if unknown.
      direction - the direction of the axis to format.
      abbreviation - the axis abbreviation, to be eventually replaced by this method.
      Returns:
      the axis abbreviation to format.
      See Also:
    • toUnicodeAbbreviation

      public String toUnicodeAbbreviation(String csType, org.opengis.referencing.cs.AxisDirection direction, String abbreviation)
      Returns the abbreviation as-is.
      Overrides:
      toUnicodeAbbreviation in class Transliterator
      Parameters:
      csType - the type of the coordinate system, or null if unknown.
      direction - the parsed axis direction.
      abbreviation - the parsed axis abbreviation, to be eventually replaced by this method.
      Returns:
      the axis abbreviation to use. Cannot be null.
    • toString

      public String toString()
      Returns a string representation similar to enum.
      Overrides:
      toString in class Object
    • readResolve

      Object readResolve() throws ObjectStreamException
      Replaces deserialized instances by the unique instance.
      Throws:
      ObjectStreamException