org.deegree_impl.services.wfs.protocol
Class WFSInsertResult_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wfs.protocol.WFSInsertResult_Impl
All Implemented Interfaces:
Marshallable, WFSInsertResult

class WFSInsertResult_Impl
extends java.lang.Object
implements WFSInsertResult, Marshallable

The element is used to delimit one or more feature identifiers of newly created features. The insert results are reported in the order in which the operations were specified in the request. Additionally, they can be correlated using the handle attribute.

--------------------------------------------------------

Version:
$Revision: 1.5 $ $Date: 2004/05/10 08:41:07 $
Author:
Andreas Poth

Field Summary
private  java.util.ArrayList featureIds
           
private  java.lang.String handle
           
 
Constructor Summary
(package private) WFSInsertResult_Impl(java.lang.String handle, java.lang.String[] featureIds)
          Creates a new WFSInsertResult_Impl object.
 
Method Summary
 void addFeatureId(java.lang.String featureId)
           
 java.lang.String exportAsXML()
          returns the XML reprsentation of the wfs Insert result
 java.lang.String[] getFeatureIds()
          Returns the ids of the inserted features
 java.lang.String getHandle()
          The handle attribute is included to allow a server to associate any text to the response.
 void setFeatureIds(java.lang.String[] featureIds)
           
 void setHandle(java.lang.String handle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

featureIds

private java.util.ArrayList featureIds

handle

private java.lang.String handle
Constructor Detail

WFSInsertResult_Impl

WFSInsertResult_Impl(java.lang.String handle,
                     java.lang.String[] featureIds)
Creates a new WFSInsertResult_Impl object.

Parameters:
handle -
featureIds -
Method Detail

getHandle

public java.lang.String getHandle()
The handle attribute is included to allow a server to associate any text to the response. The purpose of the handle attribute is to provide an error handling mechanism for locating a statement that might fail. Or to identify an InsertResult.

Specified by:
getHandle in interface WFSInsertResult

setHandle

public void setHandle(java.lang.String handle)
See Also:
getHandle()

getFeatureIds

public java.lang.String[] getFeatureIds()
Returns the ids of the inserted features

Specified by:
getFeatureIds in interface WFSInsertResult

addFeatureId

public void addFeatureId(java.lang.String featureId)
See Also:
getFeatureIds()

setFeatureIds

public void setFeatureIds(java.lang.String[] featureIds)
See Also:
getFeatureIds()

exportAsXML

public java.lang.String exportAsXML()
returns the XML reprsentation of the wfs Insert result

Specified by:
exportAsXML in interface Marshallable
Returns:
XML-representation of this object