Class UnclosedWays.UnclosedWaysCheck
java.lang.Object
org.openstreetmap.josm.data.validation.tests.UnclosedWays.UnclosedWaysCheck
- Direct Known Subclasses:
UnclosedWays.UnclosedWaysBooleanCheck
- Enclosing class:
- UnclosedWays
A check performed by UnclosedWays test.
- Since:
- 6390
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe unique numeric code for this checkprivate final StringThe English messageprivate final booleanThe boolean indicating if special values must be ignored or considered onlyfinal StringThe OSM key checkedThe special values, to be ignored if ignore is set to true; to be considered only if ignore is set to false -
Constructor Summary
ConstructorsConstructorDescriptionUnclosedWaysCheck(int code, String key, String engMessage) Constructs a newUnclosedWaysCheck.UnclosedWaysCheck(int code, String key, String engMessage, Set<String> ignoredValues) Constructs a newUnclosedWaysCheck.UnclosedWaysCheck(int code, String key, String engMessage, Set<String> specialValues, boolean ignore) Constructs a newUnclosedWaysCheck. -
Method Summary
Modifier and TypeMethodDescriptionfinal TestErrorgetTestError(Way w, UnclosedWays test) Returns the test error of the given way, if any.protected booleanisValueErroneous(String value)
-
Field Details
-
code
The unique numeric code for this check -
key
The OSM key checked -
engMessage
The English message -
specialValues
The special values, to be ignored if ignore is set to true; to be considered only if ignore is set to false -
ignore
The boolean indicating if special values must be ignored or considered only
-
-
Constructor Details
-
UnclosedWaysCheck
UnclosedWaysCheck(int code, String key, 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, String key, String engMessage, Set<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, String key, String engMessage, Set<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 Details
-
getTestError
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
-