Class SimilarNamedWays.SynonymRule
java.lang.Object
org.openstreetmap.josm.data.validation.tests.SimilarNamedWays.SynonymRule
- All Implemented Interfaces:
SimilarNamedWays.NormalizeRule
- Enclosing class:
- SimilarNamedWays
public static class SimilarNamedWays.SynonymRule
extends Object
implements SimilarNamedWays.NormalizeRule
A rule that registers synonyms to a given word
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSynonymRule(String replacement, String... words) Create a newSimilarNamedWays.SynonymRule -
Method Summary
-
Field Details
-
words
-
regExpr
-
replacement
-
-
Constructor Details
-
SynonymRule
Create a newSimilarNamedWays.SynonymRule- Parameters:
replacement- The word to use insteadwords- The synonyms for that word
-
-
Method Details
-
normalize
Description copied from interface:SimilarNamedWays.NormalizeRuleNormalize the string by replacing parts.- Specified by:
normalizein interfaceSimilarNamedWays.NormalizeRule- Parameters:
name- name to normalize- Returns:
- normalized string
-
toString
-