org.geotools.wfs.bindings
Class UpdateElementTypeBinding

java.lang.Object
  extended by org.geotools.xml.AbstractComplexBinding
      extended by org.geotools.xml.AbstractComplexEMFBinding
          extended by org.geotools.wfs.bindings.UpdateElementTypeBinding
All Implemented Interfaces:
Binding, ComplexBinding

public class UpdateElementTypeBinding
extends AbstractComplexEMFBinding

Binding object for the type http://www.opengis.net/wfs:UpdateElementType.

         
  <xsd:complexType name="UpdateElementType">
      <xsd:sequence>
          <xsd:element maxOccurs="unbounded" ref="wfs:Property">
              <xsd:annotation>
                  <xsd:documentation>
                    Changing or updating a feature instance means that
                    the current value of one or more properties of
                    the feature are replaced with new values.  The Update
                    element contains  one or more Property elements.  A
                    Property element contains the name or a feature property
                    who's value is to be changed and the replacement value
                    for that property.
                 </xsd:documentation>
              </xsd:annotation>
          </xsd:element>
          <xsd:element maxOccurs="1" minOccurs="0" ref="ogc:Filter">
              <xsd:annotation>
                  <xsd:documentation>
                    The Filter element is used to constrain the scope
                    of the update operation to those features identified
                    by the filter.  Feature instances can be specified
                    explicitly and individually using the identifier of
                    each feature instance OR a set of features to be
                    operated on can be identified by specifying spatial
                    and non-spatial constraints in the filter.
                    If no filter is specified then update operation
                    applies to all feature instances.
                 </xsd:documentation>
              </xsd:annotation>
          </xsd:element>
      </xsd:sequence>
      <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 Update 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 name="typeName" type="xsd:QName" use="required">
          <xsd:annotation>
              <xsd:documentation>
                The value of the typeName attribute is the name
                of the feature type to be updated. The name
                specified must be a valid type that belongs to
                the feature content as defined by the GML
                Application Schema.
             </xsd:documentation>
          </xsd:annotation>
      </xsd:attribute>
      <xsd:attribute default="x-application/gml:3" 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>
                 DO WE NEED THIS HERE?
             </xsd:documentation>
          </xsd:annotation>
      </xsd:attribute>
  </xsd:complexType>

          
         


Field Summary
 
Fields inherited from interface org.geotools.xml.Binding
AFTER, BEFORE, OVERRIDE
 
Constructor Summary
UpdateElementTypeBinding(WfsFactory factory)
           
 
Method Summary
 javax.xml.namespace.QName getTarget()
           
 java.lang.Class getType()
           
 java.lang.Object parse(ElementInstance instance, Node node, java.lang.Object value)
           
 
Methods inherited from class org.geotools.xml.AbstractComplexEMFBinding
createEObject, getProperty, setProperty
 
Methods inherited from class org.geotools.xml.AbstractComplexBinding
encode, getExecutionMode, getProperties, getProperties, initializeChildContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateElementTypeBinding

public UpdateElementTypeBinding(WfsFactory factory)
Method Detail

getTarget

public javax.xml.namespace.QName getTarget()
Returns:
The qualified name of the target for the binding.

getType

public java.lang.Class getType()

Specified by:
getType in interface Binding
Overrides:
getType in class AbstractComplexEMFBinding
Returns:
The java type this binding maps to.

parse

public java.lang.Object parse(ElementInstance instance,
                              Node node,
                              java.lang.Object value)
                       throws java.lang.Exception

Specified by:
parse in interface ComplexBinding
Overrides:
parse in 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:
java.lang.Exception - Strategy objects should not attempt to handle any exceptions.


Copyright © 1996-2010 Geotools. All Rights Reserved.