Class UnclosedWays.UnclosedWaysCheck
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.tests.UnclosedWays.UnclosedWaysCheck
-
- Direct Known Subclasses:
UnclosedWays.UnclosedWaysBooleanCheck
- Enclosing class:
- UnclosedWays
private static class UnclosedWays.UnclosedWaysCheck extends java.lang.Object
A check performed by UnclosedWays test.- Since:
- 6390
-
-
Field Summary
Fields Modifier and Type Field Description intcodeThe unique numeric code for this checkprivate java.lang.StringengMessageThe English messageprivate booleanignoreThe boolean indicating if special values must be ignored or considered onlyjava.lang.StringkeyThe OSM key checkedprivate java.util.Set<java.lang.String>specialValuesThe special values, to be ignored if ignore is set to true; to be considered only if ignore is set to false
-
Constructor Summary
Constructors Constructor Description UnclosedWaysCheck(int code, java.lang.String key, java.lang.String engMessage)Constructs a newUnclosedWaysCheck.UnclosedWaysCheck(int code, java.lang.String key, java.lang.String engMessage, java.util.Set<java.lang.String> ignoredValues)Constructs a newUnclosedWaysCheck.UnclosedWaysCheck(int code, java.lang.String key, java.lang.String engMessage, java.util.Set<java.lang.String> specialValues, boolean ignore)Constructs a newUnclosedWaysCheck.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestErrorgetTestError(Way w, UnclosedWays test)Returns the test error of the given way, if any.protected booleanisValueErroneous(java.lang.String value)
-
-
-
Field Detail
-
code
public final int code
The unique numeric code for this check
-
key
public final java.lang.String key
The OSM key checked
-
engMessage
private final java.lang.String engMessage
The English message
-
specialValues
private final java.util.Set<java.lang.String> specialValues
The special values, to be ignored if ignore is set to true; to be considered only if ignore is set to false
-
ignore
private final boolean ignore
The boolean indicating if special values must be ignored or considered only
-
-
Constructor Detail
-
UnclosedWaysCheck
UnclosedWaysCheck(int code, java.lang.String key, java.lang.String engMessage)
Constructs a newUnclosedWaysCheck.- Parameters:
code- The unique numeric code for this checkkey- The OSM key checkedengMessage- The English message
-
UnclosedWaysCheck
UnclosedWaysCheck(int code, java.lang.String key, java.lang.String engMessage, java.util.Set<java.lang.String> ignoredValues)
Constructs a newUnclosedWaysCheck.- Parameters:
code- The unique numeric code for this checkkey- The OSM key checkedengMessage- The English messageignoredValues- The ignored values.
-
UnclosedWaysCheck
UnclosedWaysCheck(int code, java.lang.String key, java.lang.String engMessage, java.util.Set<java.lang.String> specialValues, boolean ignore)
Constructs a newUnclosedWaysCheck.- Parameters:
code- The unique numeric code for this checkkey- The OSM key checkedengMessage- The English messagespecialValues- The special values, to be ignored if ignore is set to true; to be considered only if ignore is set to falseignore- indicates if special values must be ignored or considered only
-
-
Method Detail
-
getTestError
public final TestError getTestError(Way w, UnclosedWays test)
Returns the test error of the given way, if any.- Parameters:
w- The way to checktest- parent test- Returns:
- The test error if the way is erroneous,
nullotherwise
-
isValueErroneous
protected boolean isValueErroneous(java.lang.String value)
-
-