Package org.apache.sis.io.wkt
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
The
Transliterator.IDENTITY
implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.io.wkt.Transliterator
DEFAULT, IDENTITY, SPACES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPerforms no replacement.(package private) Object
Replaces deserialized instances by the unique instance.toLatinAbbreviation
(org.opengis.referencing.cs.CoordinateSystem cs, org.opengis.referencing.cs.AxisDirection direction, String abbreviation) Returns the abbreviation as-is.toLongAxisName
(String csType, org.opengis.referencing.cs.AxisDirection direction, String name) Returns the axis name as-is.toShortAxisName
(org.opengis.referencing.cs.CoordinateSystem cs, org.opengis.referencing.cs.AxisDirection direction, String name) Returns the axis name as-is.toString()
Returns a string representation similar to enum.toUnicodeAbbreviation
(String csType, org.opengis.referencing.cs.AxisDirection direction, String abbreviation) Returns the abbreviation as-is.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
Unicode
private Unicode()
-
-
Method Details
-
filter
Performs no replacement.- Overrides:
filter
in classTransliterator
- 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 classTransliterator
- Parameters:
cs
- the enclosing coordinate system, ornull
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 classTransliterator
- Parameters:
csType
- the type of the coordinate system, ornull
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 classTransliterator
- Parameters:
cs
- the enclosing coordinate system, ornull
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 classTransliterator
- Parameters:
csType
- the type of the coordinate system, ornull
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
Returns a string representation similar to enum. -
readResolve
Replaces deserialized instances by the unique instance.- Throws:
ObjectStreamException
-