public final class ReverseWayNoTagCorrector extends java.lang.Object
for handling of tags that can be modified (oneway=yes, etc.)
Modifier and Type | Field and Description |
---|---|
private static TagCollection |
directionalTags
Tags that imply a semantic meaning from the way direction and cannot be changed.
|
Modifier | Constructor and Description |
---|---|
private |
ReverseWayNoTagCorrector() |
Modifier and Type | Method and Description |
---|---|
static void |
checkAndConfirmReverseWay(Way way)
Checks the given way can be safely reversed and asks user to confirm the operation if it not the case.
|
protected static boolean |
confirmReverseWay(Way way,
TagCollection tags) |
static TagCollection |
getDirectionalTags(Tagged way)
Replies the tags that imply a semantic meaning from
way direction and cannot be changed. |
static boolean |
isReversible(Tagged way)
Tests whether way can be reversed without semantic change.
|
private static final TagCollection directionalTags
private ReverseWayNoTagCorrector()
public static TagCollection getDirectionalTags(Tagged way)
way
direction and cannot be changed.way
- The way to look forway
direction and cannot be changedpublic static boolean isReversible(Tagged way)
way
- The way to checkprotected static boolean confirmReverseWay(Way way, TagCollection tags)
public static void checkAndConfirmReverseWay(Way way) throws UserCancelException
way
- The way to checkUserCancelException
- If the user cancels the operation