private class UnclosedWays.UnclosedWaysCheck extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
code
The unique numeric code for this check
|
private java.lang.String |
engMessage
The English message
|
private boolean |
ignore
The boolean indicating if special values must be ignored or considered only
|
java.lang.String |
key
The OSM key checked
|
private java.util.List<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
|
| Constructor and Description |
|---|
UnclosedWaysCheck(int code,
java.lang.String key,
java.lang.String engMessage)
Constructs a new
UnclosedWaysCheck. |
UnclosedWaysCheck(int code,
java.lang.String key,
java.lang.String engMessage,
java.util.List<java.lang.String> ignoredValues)
Constructs a new
UnclosedWaysCheck. |
UnclosedWaysCheck(int code,
java.lang.String key,
java.lang.String engMessage,
java.util.List<java.lang.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(java.lang.String value) |
public final int code
public final java.lang.String key
private final java.lang.String engMessage
private final java.util.List<java.lang.String> specialValues
private final boolean ignore
public UnclosedWaysCheck(int code, java.lang.String key, java.lang.String engMessage)
UnclosedWaysCheck.code - The unique numeric code for this checkkey - The OSM key checkedengMessage - The English messagepublic UnclosedWaysCheck(int code, java.lang.String key, java.lang.String engMessage, java.util.List<java.lang.String> ignoredValues)
UnclosedWaysCheck.code - The unique numeric code for this checkkey - The OSM key checkedengMessage - The English messageignoredValues - The ignored values.public UnclosedWaysCheck(int code, java.lang.String key, java.lang.String engMessage, java.util.List<java.lang.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(java.lang.String value)