Package org.apache.sis.internal.metadata
Class NameToIdentifier.Simplifier
java.lang.Object
org.apache.sis.internal.metadata.NameToIdentifier.Simplifier
- Direct Known Subclasses:
AbstractDatum.Simplifier
- Enclosing class:
- NameToIdentifier
A function for simplifying an
IdentifiedObject
name before comparison with
NameToIdentifier.isHeuristicMatchForName(Identifier, Collection, CharSequence, Simplifier)
.- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NameToIdentifier.Simplifier
The default instance, which replaces some non-ASCII characters by ASCII ones.static final String
The prefix used by ESRI at the beginning of datum names. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CharSequence
apply
(CharSequence name) Simplifies the given name.
-
Field Details
-
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
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
Simplifies the given name.- Parameters:
name
- the object name (may benull
).- Returns:
- the name to use for comparison purpose, or
null
.
-