Interface Localized

All Known Implementing Classes:
Angle­Format, Association­Role­Builder, Attribute­Type­Builder, Canvas, Cascaded­Store­Event, Characteristic­Type­Builder, Close­Event, Compound­Format, Coordinate­Format, Coordinate­Operation­Context, Coverage­Canvas, Coverage­Explorer, Data­Store, EPSGData­Access, EPSGFactory, Feature­Format, Feature­Type­Builder, Formatter, GDALStore, Geo­Heif­Store, Geo­Tiff­Store, Grid­Slice­Selector, Identified­Object­Set, Image­Property­Explorer, Landsat­Store, Location­Format, Log­Viewer, Map­Canvas, Map­Canvas­AWT, Marshal­Context, Metadata­Summary, Netcdf­Store, Optional­Installations, Parameter­Format, Planar­Canvas, Property­Type­Builder, Range­Format, Resource­Explorer, Resources­Downloader, Simple­Feature­Store, SQLStore, Statistics­Format, Status­Bar, Store­Event, Store­Listeners, Symbols, Tabular­Format, Tile­Matrix­Set­Format, Tile­Matrix­Set­Pane, Tile­Read­Event, Tree­Table­Format, Type­Builder, Unit­Format, Warning­Event, Warnings, Widget, WKTFormat

public interface Localized
Interface of classes for which each instance is configured for a particular locale. Implementations of Localized are often parsers or formatters configured for a locale specified at construction time.

Localized exception messages

When a class implementing this Localized interface throws an exception, the error message returned by Throwable​.get­Localized­Message() will often be in the locale returned by get­Locale() instead of the default locale. This policy is applied on a best effort basis only.
Since:
0.3
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the locale of the implemented service.
  • Method Details

    • getLocale

      Locale getLocale()
      Returns the locale of the implemented service. Some implementations may return null if no locale is explicitly defined. The meaning of null locale is implementation-dependent, but typical interpretations are: Implementations are encouraged to return a non-null value in every cases. Nevertheless, client codes should be prepared to receive null values.
      Returns:
      the locale, or null if not explicitly defined.