Package org.openstreetmap.josm.actions
Class ReverseWayAction.ReverseWayResult
java.lang.Object
org.openstreetmap.josm.actions.ReverseWayAction.ReverseWayResult
- Enclosing class:
- ReverseWayAction
The resulting way after reversing it and the commands to get there.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReverseWayResult(Collection<Command> tagCorrectionCommands, Command reverseCommand) Create a newReverseWayAction.ReverseWayResult -
Method Summary
Modifier and TypeMethodDescriptionGets a single sequence command for reversing this way including changing the tagsGets the commands that will be required to do a full way reversal including changing the tagsGets the basic reverse command that only changes the order of the nodes.Gets the command to change the tags of the way
-
Field Details
-
tagCorrectionCommands
-
reverseCommand
-
-
Constructor Details
-
ReverseWayResult
Create a newReverseWayAction.ReverseWayResult- Parameters:
tagCorrectionCommands- The commands to correct the tagsreverseCommand- The command to reverse the way
-
-
Method Details
-
getCommands
Gets the commands that will be required to do a full way reversal including changing the tags- Returns:
- The commands
-
getAsSequenceCommand
Gets a single sequence command for reversing this way including changing the tags- Returns:
- the command
-
getReverseCommand
Gets the basic reverse command that only changes the order of the nodes.- Returns:
- The reorder nodes command
-
getTagCorrectionCommands
Gets the command to change the tags of the way- Returns:
- The command to reverse the tags
-