private class UnclosedWays.UnclosedWaysCheck extends Object
Modifier and Type | Field and Description |
---|---|
int |
code
The unique numeric code for this check
|
private String |
engMessage
The English message
|
private boolean |
ignore
The boolean indicating if special values must be ignored or considered only
|
String |
key
The OSM key checked
|
private List<String> |
specialValues
The special values, to be ignored if ignore is set to true; to be considered only if ignore is set to false
|
Constructor and Description |
---|
UnclosedWays.UnclosedWaysCheck(int code,
String key,
String engMessage)
Constructs a new
UnclosedWaysCheck . |
UnclosedWays.UnclosedWaysCheck(int code,
String key,
String engMessage,
List<String> ignoredValues)
Constructs a new
UnclosedWaysCheck . |
UnclosedWays.UnclosedWaysCheck(int code,
String key,
String engMessage,
List<String> specialValues,
boolean ignore)
Constructs a new
UnclosedWaysCheck . |
Modifier and Type | Method and Description |
---|---|
TestError |
getTestError(Way w)
Returns the test error of the given way, if any.
|
protected boolean |
isValueErroneous(String value) |
public final int code
private final String engMessage
private final List<String> specialValues
private final boolean ignore
public UnclosedWays.UnclosedWaysCheck(int code, String key, String engMessage)
UnclosedWaysCheck
.code
- The unique numeric code for this checkkey
- The OSM key checkedengMessage
- The English messagepublic UnclosedWays.UnclosedWaysCheck(int code, String key, String engMessage, List<String> ignoredValues)
UnclosedWaysCheck
.code
- The unique numeric code for this checkkey
- The OSM key checkedengMessage
- The English messageignoredValues
- The ignored values.public UnclosedWays.UnclosedWaysCheck(int code, String key, String engMessage, List<String> specialValues, boolean ignore)
UnclosedWaysCheck
.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 onlypublic final TestError getTestError(Way w)
w
- The way to checknull
otherwiseprotected boolean isValueErroneous(String value)