net.refractions.udig.project.command
Class EditCommandFactory

java.lang.Object
  extended by net.refractions.udig.project.command.EditCommandFactory
Direct Known Subclasses:
EditCommandFactory

Deprecated.

public class EditCommandFactory
extends java.lang.Object

Creates Edit commands which must be used to modify editable feature data. API internal classes are in the returned API

Since:
0.3
Author:
jeichar

Constructor Summary
protected EditCommandFactory()
          Deprecated.  
 
Method Summary
 MapCommand createCommitCommand()
          Deprecated. Create a Commit command
 UndoableMapCommand createCreateLayerCommand(java.net.URL resourceId)
          Deprecated. Create a CreateLayerCommand
 UndoableMapCommand createDeleteFeature(Feature feature, ILayer layer)
          Deprecated. Create a Delete Feature command
 UndoableMapCommand createDeleteLayer(Layer layer)
          Deprecated. Create a delete layer command
 UndoableMapCommand createFeature(Coordinate[] coordinates)
          Deprecated.  
 UndoableMapCommand createNullEditFeatureCommand()
          Deprecated. Creates a SetEditFeatureCommandobject that sets the current editable Feature to null.
 UndoableMapCommand createResetEditFeatureCommand()
          Deprecated. Create a ResetEditFeatureCommand command
 MapCommand createRollbackCommand()
          Deprecated. Create a Commit command
 UndoableMapCommand createSetAttributeCommand(java.lang.String xpath, java.lang.Object value)
          Deprecated. Creates a SetAttributeCommandobject.
 UndoableMapCommand createSetEditFeatureCommand(Feature feature)
          Deprecated. Creates a SetEditFeatureCommandobject that sets the current editable Feature.
 UndoableMapCommand createSetEditFeatureCommand(Feature feature, ILayer layer)
          Deprecated. Creates a SetEditFeatureCommandobject that sets the current editVictim victim.
 UndoableMapCommand createSetGeometryCommand(Geometry geom)
          Deprecated. Creates a SetGeometryCommandobject that sets the default geometry.
 UndoableMapCommand createSetGeometryCommand(java.lang.String xpath, Geometry geom)
          Deprecated. Creates a SetGeometryCommandobject.
 UndoableMapCommand createWriteEditFeatureCommand()
          Deprecated. Create a WriteEditFeatureCommand command
static EditCommandFactory getInstance()
          Deprecated. Creates a new EditCommandFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditCommandFactory

protected EditCommandFactory()
Deprecated. 
Method Detail

getInstance

public static EditCommandFactory getInstance()
Deprecated. 
Creates a new EditCommandFactory object

Returns:
a new EditCommandFactory object

createSetAttributeCommand

public UndoableMapCommand createSetAttributeCommand(java.lang.String xpath,
                                                    java.lang.Object value)
Deprecated. 
Creates a SetAttributeCommandobject.

Parameters:
xpath - xpath that identifies an attribute in the current editable Feature
value - the value that the attribute will be set to.
Returns:
a new SetAttributeCommandobject
See Also:
EditCommand

createSetGeometryCommand

public UndoableMapCommand createSetGeometryCommand(java.lang.String xpath,
                                                   Geometry geom)
Deprecated. 
Creates a SetGeometryCommandobject.

Parameters:
xpath - xpath that identifies an attribute in the current editable Feature
geom - the geom (in layer CRS) that the geometry will be set to.
Returns:
a new SetGeometryCommandobject
See Also:
EditCommand, Geometry

createSetGeometryCommand

public UndoableMapCommand createSetGeometryCommand(Geometry geom)
Deprecated. 
Creates a SetGeometryCommandobject that sets the default geometry.

Parameters:
geom - the geom (in layer CRS) that the geometry will be set to.
Returns:
a new SetGeometryCommandobject.
See Also:
EditCommand, Geometry

createSetEditFeatureCommand

public UndoableMapCommand createSetEditFeatureCommand(Feature feature,
                                                      ILayer layer)
Deprecated. 
Creates a SetEditFeatureCommandobject that sets the current editVictim victim.

Parameters:
feature - the feature that will be the new editable Feature.
layer - A victim Store that contains the editable Feature.
Returns:
a new SetEditFeatureCommandobject.
See Also:
Feature, Layer, UndoableMapCommand

createCommitCommand

public MapCommand createCommitCommand()
Deprecated. 
Create a Commit command

Returns:
a new CommitCommand object that deletes the feature.
See Also:
CommitCommand

createRollbackCommand

public MapCommand createRollbackCommand()
Deprecated. 
Create a Commit command

Returns:
a new RollbackCommand object that deletes the feature.
See Also:
RollbackCommand

createSetEditFeatureCommand

public UndoableMapCommand createSetEditFeatureCommand(Feature feature)
Deprecated. 
Creates a SetEditFeatureCommandobject that sets the current editable Feature.

Parameters:
feature - the feature that will be the new editable Feature.
Returns:
a new SetEditFeatureCommandobject.
See Also:
UndoableMapCommand, Feature

createNullEditFeatureCommand

public UndoableMapCommand createNullEditFeatureCommand()
Deprecated. 
Creates a SetEditFeatureCommandobject that sets the current editable Feature to null.

Returns:
a new SetEditFeatureCommandobject that sets the current editable Feature to null..
See Also:
UndoableMapCommand

createFeature

public UndoableMapCommand createFeature(Coordinate[] coordinates)
Deprecated. 
Parameters:
coordinates - the coordinates of the new feature in Map CRS.
Returns:
a new CreateFeatureCommandobject creates the feature.
See Also:
CreateFeatureCommand

createDeleteLayer

public UndoableMapCommand createDeleteLayer(Layer layer)
Deprecated. 
Create a delete layer command

Parameters:
map - the map containing the layer
layer - the layer to delete
Returns:
a new DeleteLayerCommandobject that deletes the layer.
See Also:
DeleteLayerCommand

createDeleteFeature

public UndoableMapCommand createDeleteFeature(Feature feature,
                                              ILayer layer)
Deprecated. 
Create a Delete Feature command

Parameters:
layer - the layer containing the feature
feature - the feature to delete
Returns:
a new DeleteFeatureCommandobject that deletes the feature.
See Also:
DeleteFeatureCommand

createWriteEditFeatureCommand

public UndoableMapCommand createWriteEditFeatureCommand()
Deprecated. 
Create a WriteEditFeatureCommand command

Returns:
a new WriteEditFeatureCommand object that deletes the feature.
See Also:
WriteEditFeatureCommand

createCreateLayerCommand

public UndoableMapCommand createCreateLayerCommand(java.net.URL resourceId)
Deprecated. 
Create a CreateLayerCommand

See Also:
CreateLayerCommand

createResetEditFeatureCommand

public UndoableMapCommand createResetEditFeatureCommand()
Deprecated. 
Create a ResetEditFeatureCommand command

Returns:
a new ResetEditFeatureCommand object that deletes the feature.
See Also:
ResetEditFeatureCommand