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 Set<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 |
|---|
UnclosedWaysCheck(int code,
String key,
String engMessage)
Constructs a new
UnclosedWaysCheck. |
UnclosedWaysCheck(int code,
String key,
String engMessage,
Set<String> ignoredValues)
Constructs a new
UnclosedWaysCheck. |
UnclosedWaysCheck(int code,
String key,
String engMessage,
Set<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 Set<String> specialValues
private final boolean ignore
UnclosedWaysCheck(int code, String key, String engMessage)
UnclosedWaysCheck.code - The unique numeric code for this checkkey - The OSM key checkedengMessage - The English messageUnclosedWaysCheck(int code, String key, String engMessage, Set<String> ignoredValues)
UnclosedWaysCheck.code - The unique numeric code for this checkkey - The OSM key checkedengMessage - The English messageignoredValues - The ignored values.UnclosedWaysCheck(int code, String key, String engMessage, Set<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)