Class SimilarNamedWays.RegExprRule
java.lang.Object
org.openstreetmap.josm.data.validation.tests.SimilarNamedWays.RegExprRule
- All Implemented Interfaces:
SimilarNamedWays.NormalizeRule
- Enclosing class:
- SimilarNamedWays
public static class SimilarNamedWays.RegExprRule
extends Object
implements SimilarNamedWays.NormalizeRule
A rule to replace by regular expression,
so that all strings matching the regular expression are handled as if they were
replacement-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegExprRule(String expression, String replacement) Create a new rule to replace by regular expression -
Method Summary
-
Field Details
-
regExpr
-
replacement
-
-
Constructor Details
-
RegExprRule
Create a new rule to replace by regular expression- Parameters:
expression- The regular expressionreplacement- The replacement
-
-
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
-