public class DefaultEditingService extends AbstractService implements EditingService
ACTIVATE_NOTIFICATION, FINISH_AND_STORE_NOTIFICATION, FINISH_NOTIFICATION, NEXT_NOTIFICATION, PARAMETER_CHANGED1_NOTIFICATION, PARAMETER_CHANGED2_NOTIFICATION, RESTART_NOTIFICATION, START_NOTIFICATION, STOP_NOTIFICATION| Modifier and Type | Method and Description | 
|---|---|
| void | activate()Activate service | 
| void | addObserver(Observer o) | 
| void | deleteObserver(Observer o) | 
| void | deleteObservers() | 
| Geometry | finish()Finalizes service. | 
| void | finishAndStore()Finalizes service and stores the result to  FeatureStoreof this
 service. | 
| EditableFeature | getDefaultFeatureValues() | 
| java.lang.String | getDescription() | 
| DrawingStatus | getDrawingStatus(Point mousePosition)Gets state of drawing. | 
| IVectorLegend | getLegend() | 
| Manager | getManager()Returns a reference to the  Managerwhich manages this server. | 
| java.lang.String | getName()Gets service name. | 
| java.util.List<EditingServiceParameter> | getParameters()Gets a  Listwith all parameters of service. | 
| protected EditingProvider | getProvider()Returns the provider related to this service. | 
| protected EditingProviderManager | getProviderManager()Returns the reference to the  ProviderManager. | 
| FeatureStore | getStore() | 
| java.lang.Object | getValue(EditingServiceParameter parameter)Return the parameter's value | 
| java.lang.Object | getValue(EditingServiceParameter parameter,
        EditingServiceParameter.TYPE type) | 
| boolean | isEnabled(EditingServiceParameter parameter)Return true if the parameter is enabled | 
| boolean | mustRestartAtFinish() | 
| EditingServiceParameter | next()Gets next parameter needed by service. | 
| void | restart() | 
| void | setDefaultFeatureValues(EditableFeature feature) | 
| void | setShowPreviewSymbol(boolean showPreviewSymbol) | 
| void | setValue(EditingServiceParameter parameter,
        java.lang.Object value)Sets value into a paremeter of the service.The value will be put in the parameter of this service. | 
| void | setValue(java.lang.Object value)Sets value to service. | 
| void | start()Starts service. | 
| void | stop()Stops service. | 
getProviderServices, getServiceParameters, initprotected EditingProvider getProvider()
AbstractServicegetProvider in class AbstractServicepublic Manager getManager()
ServiceManager which manages this server.getManager in interface ServiceManagerpublic DrawingStatus getDrawingStatus(Point mousePosition) throws DrawServiceException
EditingServiceDrawingStatus. 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.getDrawingStatus in interface EditingServicemousePosition - Mouse position to draw geometries.DrawingStatus object with a list of geometries and
         information.DrawServiceException - if there are some error creating geometries.public java.util.List<EditingServiceParameter> getParameters()
EditingServiceList with all parameters of service. Each parameter
 has name, description and types. See EditingServiceParameter.getParameters in interface EditingServiceEditingServiceParameter objects.public EditingServiceParameter next()
EditingServicenull if all
 parameters have values.next in interface EditingServiceEditingServiceParameter object that represents the
         next parameter.public void setValue(java.lang.Object value)
              throws InvalidEntryException
EditingServicesetValue in interface EditingServicevalue - Object to be set to next EditingServiceParameterInvalidEntryException - If the next parameter needed does not accept this value.public void stop()
          throws StopServiceException
EditingServicestop in interface EditingServiceStopServiceException - Stops service initializing necessary parameters of service.
             This method is called when user cancels service.public void finishAndStore()
                    throws FinishServiceException
EditingServiceFeatureStore of this
 service. Use this method to store the result of this service. Make sure
 that service has all required values.finishAndStore in interface EditingServiceFinishServiceException - if there are some error getting values,
             creating geometries or inserting/updating/removing geometries
             from feature store.public Geometry finish() throws FinishServiceException
EditingServiceFeatureStore. Make sure that service has all required
 values.finish in interface EditingServiceFinishServiceException - if there are some error getting values,
             creating geometries.public void start()
           throws StartServiceException,
                  InvalidEntryException
EditingServicestart in interface EditingServiceStartServiceException - if there are some error starting service.InvalidEntryException - if the entry of provider is not validpublic java.lang.String getName()
EditingServicegetName in interface EditingServicepublic void setValue(EditingServiceParameter parameter, java.lang.Object value) throws InvalidEntryException
EditingServicesetValue in interface EditingServiceparameter - EditingServiceParametervalue - Object to be set to EditingServiceParameterInvalidEntryException - If the next parameter needed does not accept this value.public boolean isEnabled(EditingServiceParameter parameter)
EditingServiceisEnabled in interface EditingServicepublic void activate()
EditingServiceactivate in interface EditingServicepublic java.lang.Object getValue(EditingServiceParameter parameter)
EditingServicegetValue in interface EditingServicepublic java.lang.Object getValue(EditingServiceParameter parameter, EditingServiceParameter.TYPE type)
getValue in interface EditingServicepublic void addObserver(Observer o)
addObserver in interface Observablepublic void deleteObserver(Observer o)
deleteObserver in interface Observablepublic void deleteObservers()
deleteObservers in interface Observablepublic void setDefaultFeatureValues(EditableFeature feature)
setDefaultFeatureValues in interface EditingServicepublic EditableFeature getDefaultFeatureValues()
getDefaultFeatureValues in interface EditingServicepublic FeatureStore getStore()
getStore in interface EditingServicepublic IVectorLegend getLegend()
getLegend in interface EditingServicepublic java.lang.String getDescription()
getDescription in interface EditingServiceprotected EditingProviderManager getProviderManager()
AbstractServiceProviderManager.getProviderManager in class AbstractServicepublic void setShowPreviewSymbol(boolean showPreviewSymbol)
setShowPreviewSymbol in interface EditingServicepublic void restart()
             throws StartServiceException,
                    InvalidEntryException,
                    StopServiceException
restart in interface EditingServiceStartServiceExceptionInvalidEntryExceptionStopServiceExceptionpublic boolean mustRestartAtFinish()
mustRestartAtFinish in interface EditingService