Class NameToIdentifier.Simplifier

java.lang.Object
org.apache.sis.internal.metadata.NameToIdentifier.Simplifier
Direct Known Subclasses:
AbstractDatum.Simplifier
Enclosing class:
NameToIdentifier

public static class NameToIdentifier.Simplifier extends Object
A function for simplifying an IdentifiedObject name before comparison with NameToIdentifier.isHeuristicMatchForName(Identifier, Collection, CharSequence, Simplifier).
Since:
1.0
  • Field Details

    • ESRI_DATUM_PREFIX

      public static final String ESRI_DATUM_PREFIX
      The prefix used by ESRI at the beginning of datum names. This prefix should be omitted when simplifying a datum name.
      See Also:
    • DEFAULT

      public static final NameToIdentifier.Simplifier DEFAULT
      The default instance, which replaces some non-ASCII characters by ASCII ones.
  • Constructor Details

    • Simplifier

      protected Simplifier()
      For subclasses and default instance only.
  • Method Details

    • apply

      protected CharSequence apply(CharSequence name)
      Simplifies the given name.
      Parameters:
      name - the object name (may be null).
      Returns:
      the name to use for comparison purpose, or null.