org.geotools.wfs.bindings
Class LockFeatureTypeBinding

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

public class LockFeatureTypeBinding
extends AbstractComplexEMFBinding

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

         
  <xsd:complexType name="LockFeatureType">
      <xsd:annotation>
          <xsd:documentation>
              This type defines the LockFeature operation.  The LockFeature
              element contains one or more Lock elements that define which
              features of a particular type should be locked.  A lock
              identifier (lockId) is returned to the client application which
              can be used by subsequent operations to reference the locked
              features.
           </xsd:documentation>
      </xsd:annotation>
      <xsd:complexContent>
          <xsd:extension base="wfs:BaseRequestType">
              <xsd:sequence>
                  <xsd:element maxOccurs="unbounded" name="Lock" type="wfs:LockType">
                      <xsd:annotation>
                          <xsd:documentation>
                          The lock element is used to indicate which feature
                          instances of particular type are to be locked.
                       </xsd:documentation>
                      </xsd:annotation>
                  </xsd:element>
              </xsd:sequence>
              <xsd:attribute default="5" name="expiry"
                  type="xsd:positiveInteger" use="optional">
                  <xsd:annotation>
                      <xsd:documentation>
                       The expiry attribute is used to set the length
                       of time (expressed in minutes) that features will
                       remain locked as a result of a LockFeature
                       request.  After the expiry period elapses, the
                       locked resources must be released.  If the
                       expiry attribute is not set, then the default
                       value of 5 minutes will be enforced.
                    </xsd:documentation>
                  </xsd:annotation>
              </xsd:attribute>
              <xsd:attribute default="ALL" name="lockAction"
                  type="wfs:AllSomeType" use="optional">
                  <xsd:annotation>
                      <xsd:documentation>
                       The lockAction attribute is used to indicate what
                       a Web Feature Service should do when it encounters
                       a feature instance that has already been locked by
                       another client application.

                       Valid values are ALL or SOME.

                       ALL means that the Web Feature Service must acquire
                       locks on all the requested feature instances.  If it
                       cannot acquire those locks then the request should
                       fail.  In this instance, all locks acquired by the
                       operation should be released.

                       SOME means that the Web Feature Service should lock
                       as many of the requested features as it can.
                    </xsd:documentation>
                  </xsd:annotation>
              </xsd:attribute>
          </xsd:extension>
      </xsd:complexContent>
  </xsd:complexType>

          
         


Field Summary
 
Fields inherited from interface org.geotools.xml.Binding
AFTER, BEFORE, OVERRIDE
 
Constructor Summary
LockFeatureTypeBinding(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

LockFeatureTypeBinding

public LockFeatureTypeBinding(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.