Package org.geotools.wfs.bindings
Class InsertElementTypeBinding
- Object
- 
- AbstractComplexBinding
- 
- AbstractComplexEMFBinding
- 
- InsertElementTypeBinding
 
 
 
- 
- All Implemented Interfaces:
- Binding,- ComplexBinding
 
 public class InsertElementTypeBinding extends AbstractComplexEMFBinding Binding object for the type http://www.opengis.net/wfs:InsertElementType.<xsd:complexType name="InsertElementType"> <xsd:annotation> <xsd:documentation> An Insert element may contain a feature collection or one or more feature instances to be inserted into the repository. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element maxOccurs="unbounded" ref="gml:_Feature"/> </xsd:sequence> <xsd:attribute default="GenerateNew" name="idgen" type="wfs:IdentifierGenerationOptionType" use="optional"> <xsd:annotation> <xsd:documentation> The idgen attribute control how a WFS generates identifiers from newly created feature instances using the Insert action. The default action is to have the WFS generate a new id for the features. This is also backward compatible with WFS 1.0 where the only action was for the WFS to generate an new id. </xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute name="handle" type="xsd:string" use="optional"> <xsd:annotation> <xsd:documentation> The handle attribute allows a client application to assign a client-generated request identifier to an Insert action. The handle is included to facilitate error reporting. If an Insert action in a Transaction request fails, then a WFS may include the handle in an exception report to localize the error. If no handle is included of the offending Insert element then a WFS may employee other means of localizing the error (e.g. line number). </xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute default="text/xml; subtype=gml/3.1.1" name="inputFormat" type="xsd:string" use="optional"> <xsd:annotation> <xsd:documentation> This inputFormat attribute is used to indicate the format used to encode a feature instance in an Insert element. The default value of 'text/xml; subtype=gml/3.1.1' is used to indicate that feature encoding is GML3. Another example might be 'text/xml; subtype=gml/2.1.2' indicating that the feature us encoded in GML2. A WFS must declare in the capabilities document, using a Parameter element, which version of GML it supports. </xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute name="srsName" type="xsd:anyURI" use="optional"> <xsd:annotation> <xsd:documentation> ===== PAV 12NOV2004 ==== WHY IS THIS HERE? WOULDN'T WE KNOW THE INCOMING SRS FROM THE GML GEOMETRY ELEMENTS? I ASSUME THAT IF THE INCOMING SRS DOES NOT MATCH ONE OF THE STORAGE SRS(s) THEN THE WFS WOULD EITHER PROJECT INTO THE STORAGE SRS OR RAISE AN EXCEPTION. </xsd:documentation> </xsd:annotation> </xsd:attribute> </xsd:complexType>
- 
- 
Constructor SummaryConstructors Constructor Description InsertElementTypeBinding(WfsFactory wfsfactory)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetProperty(Object object, QName name)Uses EMF reflection dynamically return the property with the specified name.QNamegetTarget()ClassgetType()voidinitializeChildContext(ElementInstance childInstance, Node node, MutablePicoContainer context)Does nothing, subclasses should override this method.Objectparse(ElementInstance instance, Node node, Object value)- 
Methods inherited from class AbstractComplexEMFBindingcreateEObject, setProperty
 - 
Methods inherited from class AbstractComplexBindingencode, getExecutionMode, getProperties, initialize
 
- 
 
- 
- 
- 
Constructor Detail- 
InsertElementTypeBindingpublic InsertElementTypeBinding(WfsFactory wfsfactory) 
 
- 
 - 
Method Detail- 
getTargetpublic QName getTarget() - Returns:
- The qualified name of the target for the binding.
 
 - 
getTypepublic Class getType() - Specified by:
- getTypein interface- Binding
- Overrides:
- getTypein class- AbstractComplexEMFBinding
- Returns:
- The java type this binding maps to.
 
 - 
initializeChildContextpublic void initializeChildContext(ElementInstance childInstance, Node node, MutablePicoContainer context) Description copied from class:AbstractComplexBindingDoes nothing, subclasses should override this method.- Specified by:
- initializeChildContextin interface- ComplexBinding
- Overrides:
- initializeChildContextin class- AbstractComplexBinding
- Parameters:
- childInstance- The child element instance
- node- The parse node for the parent element.
- context- the context in which the child element will be parsed.
 
 - 
parsepublic Object parse(ElementInstance instance, Node node, Object value) throws Exception - Specified by:
- parsein interface- ComplexBinding
- Overrides:
- parsein class- AbstractComplexEMFBinding
- Parameters:
- instance- The element being parsed.
- node- The node in the parse tree representing the element being parsed.
- value- The result of the parse from another strategy in the type hierarchy. Could be null if this is the first strategy being executed.
- Returns:
- The parsed object, or null if the component could not be parsed.
- Throws:
- Exception- Strategy objects should not attempt to handle any exceptions.
 
 - 
getPropertypublic Object getProperty(Object object, QName name) throws Exception Description copied from class:AbstractComplexEMFBindingUses EMF reflection dynamically return the property with the specified name.In the case that the name of a child element or attributes does not match the name of a property on the object, subclasses may wish to extend this method and set the property explicitly. - Specified by:
- getPropertyin interface- ComplexBinding
- Overrides:
- getPropertyin class- AbstractComplexEMFBinding
- Parameters:
- object- The object being encoded.
- name- The name of the property to obtain.
- Returns:
- The value of the property, or null.
- Throws:
- Exception
- See Also:
- ComplexBinding.getProperty(Object, QName)
 
 
- 
 
-