Package org.openstreetmap.josm.actions
Class ReverseWayAction.ReverseWayResult
- java.lang.Object
-
- org.openstreetmap.josm.actions.ReverseWayAction.ReverseWayResult
-
- Enclosing class:
- ReverseWayAction
public static class ReverseWayAction.ReverseWayResult extends java.lang.Object
The resulting way after reversing it and the commands to get there.
-
-
Field Summary
Fields Modifier and Type Field Description private Command
reverseCommand
private java.util.Collection<Command>
tagCorrectionCommands
-
Constructor Summary
Constructors Constructor Description ReverseWayResult(java.util.Collection<Command> tagCorrectionCommands, Command reverseCommand)
Create a newReverseWayAction.ReverseWayResult
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Command
getAsSequenceCommand()
Gets a single sequence command for reversing this way including changing the tagsjava.util.Collection<Command>
getCommands()
Gets the commands that will be required to do a full way reversal including changing the tagsCommand
getReverseCommand()
Gets the basic reverse command that only changes the order of the nodes.java.util.Collection<Command>
getTagCorrectionCommands()
Gets the command to change the tags of the way
-
-
-
Field Detail
-
tagCorrectionCommands
private final java.util.Collection<Command> tagCorrectionCommands
-
reverseCommand
private final Command reverseCommand
-
-
Constructor Detail
-
ReverseWayResult
public ReverseWayResult(java.util.Collection<Command> tagCorrectionCommands, Command reverseCommand)
Create a newReverseWayAction.ReverseWayResult
- Parameters:
tagCorrectionCommands
- The commands to correct the tagsreverseCommand
- The command to reverse the way
-
-
Method Detail
-
getCommands
public java.util.Collection<Command> getCommands()
Gets the commands that will be required to do a full way reversal including changing the tags- Returns:
- The commands
-
getAsSequenceCommand
public Command getAsSequenceCommand()
Gets a single sequence command for reversing this way including changing the tags- Returns:
- the command
-
getReverseCommand
public Command getReverseCommand()
Gets the basic reverse command that only changes the order of the nodes.- Returns:
- The reorder nodes command
-
getTagCorrectionCommands
public java.util.Collection<Command> getTagCorrectionCommands()
Gets the command to change the tags of the way- Returns:
- The command to reverse the tags
-
-