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 longFor 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) ObjectReplaces 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:
filterin 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:
toShortAxisNamein classTransliterator- Parameters:
cs- the enclosing coordinate system, ornullif 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
nullif 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:
toLongAxisNamein classTransliterator- Parameters:
csType- the type of the coordinate system, ornullif 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:
toLatinAbbreviationin classTransliterator- Parameters:
cs- the enclosing coordinate system, ornullif 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:
toUnicodeAbbreviationin classTransliterator- Parameters:
csType- the type of the coordinate system, ornullif 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
-