org.openstreetmap.josm.actions
Class SplitWayAction.SplitWayResult

java.lang.Object
  extended by org.openstreetmap.josm.actions.SplitWayAction.SplitWayResult
Enclosing class:
SplitWayAction

public static class SplitWayAction.SplitWayResult
extends java.lang.Object

Represents the result of a SplitWayAction

See Also:
SplitWayAction.splitWay(org.openstreetmap.josm.gui.layer.OsmDataLayer, org.openstreetmap.josm.data.osm.Way, java.util.List>, java.util.Collection), SplitWayAction.split(org.openstreetmap.josm.gui.layer.OsmDataLayer, org.openstreetmap.josm.data.osm.Way, java.util.List, java.util.Collection)

Field Summary
private  Command command
           
private  java.util.List<? extends PrimitiveId> newSelection
           
private  java.util.List<Way> newWays
           
private  Way originalWay
           
 
Constructor Summary
SplitWayAction.SplitWayResult(Command command, java.util.List<? extends PrimitiveId> newSelection, Way originalWay, java.util.List<Way> newWays)
           
 
Method Summary
 Command getCommand()
          Replies the command to be performed to split the way
 java.util.List<? extends PrimitiveId> getNewSelection()
          Replies the new list of selected primitives ids
 java.util.List<Way> getNewWays()
          Replies the resulting new ways
 Way getOriginalWay()
          Replies the original way being split
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

private final Command command

newSelection

private final java.util.List<? extends PrimitiveId> newSelection

originalWay

private Way originalWay

newWays

private java.util.List<Way> newWays
Constructor Detail

SplitWayAction.SplitWayResult

public SplitWayAction.SplitWayResult(Command command,
                                     java.util.List<? extends PrimitiveId> newSelection,
                                     Way originalWay,
                                     java.util.List<Way> newWays)
Parameters:
command - The command to be performed to split the way (which is saved for later retrieval by the getCommand() method)
newSelection - The new list of selected primitives ids (which is saved for later retrieval by the getNewSelection() method)
originalWay - The original way being split (which is saved for later retrieval by the getOriginalWay() method)
newWays - The resulting new ways (which is saved for later retrieval by the getOriginalWay() method)
Method Detail

getCommand

public Command getCommand()
Replies the command to be performed to split the way

Returns:
The command to be performed to split the way

getNewSelection

public java.util.List<? extends PrimitiveId> getNewSelection()
Replies the new list of selected primitives ids

Returns:
The new list of selected primitives ids

getOriginalWay

public Way getOriginalWay()
Replies the original way being split

Returns:
The original way being split

getNewWays

public java.util.List<Way> getNewWays()
Replies the resulting new ways

Returns:
The resulting new ways


JOSM