public interface EditingProvider extends Provider
| Modifier and Type | Method and Description |
|---|---|
Geometry |
finish()
Finalizes provider.
|
void |
finishAndStore()
Finalizes provider and stores the result to
FeatureStore of this
provider. |
DrawingStatus |
getDrawingStatus(Point mousePosition)
Gets state of drawing.
|
String |
getName()
Gets provider name.
|
List<EditingServiceParameter> |
getParameters()
Gets a
List with all parameters of provider. |
EditingServiceParameter |
next()
Gets next parameter needed by provider.
|
void |
setValue(Object value)
Sets value to provider.
|
void |
start()
Starts provider.
|
void |
stop()
Stops provider.
|
setProviderServicesEditingServiceParameter next()
null if all
parameters have values.EditingServiceParameter object that represents the
next parameter.DrawingStatus getDrawingStatus(Point mousePosition) throws DrawServiceException
DrawingStatus. List of
geometries of drawing status object can be different from final
geometries. Use this method to get a draft status information while user
is drawing.mousePosition - Mouse position to draw geometries.DrawingStatus object with a list of geometries and
information.DrawServiceException - if there are some error creating geometries.void stop()
throws StopServiceException
StopServiceException - Stops provider initializing necessary parameters of provider.
This method is called when user cancels provider.List<EditingServiceParameter> getParameters()
List with all parameters of provider. Each parameter
has name, description and types. See EditingServiceParameter.EditingServiceParameter objects.void setValue(Object value) throws InvalidEntryException
value - Object to be set to next EditingServiceParameterInvalidEntryException - If the next parameter needed does not accept this value.Geometry finish() throws FinishServiceException
FeatureStore. Make sure that provider has all required
values.FinishServiceException - if there are some error getting values,
creating geometries.void finishAndStore()
throws FinishServiceException
FeatureStore of this
provider. Use this method to store the result of this service. Make sure
that service has all required values.FinishServiceException - if there are some error getting values,
creating geometries or inserting/updating/removing geometries
from feature store.void start()
throws StartServiceException,
InvalidEntryException
StartServiceException - if there are some error starting service.InvalidEntryException - if the entry of provider is not validString getName()