/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2002-2008, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.wfs.bindings;
import javax.xml.namespace.QName;
import net.opengis.wfs.LockFeatureType;
import net.opengis.wfs.WfsFactory;
import org.geotools.wfs.WFS;
import org.geotools.xml.AbstractComplexEMFBinding;
import org.geotools.xml.ElementInstance;
import org.geotools.xml.Node;
/**
* Binding object for the type http://www.opengis.net/wfs:LockFeatureType.
*
* <p>
* <pre>
* <code>
* <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>
*
* </code>
* </pre>
* </p>
*
* @generated
*
* @source $URL$
*/
public class LockFeatureTypeBinding extends AbstractComplexEMFBinding {
public LockFeatureTypeBinding(WfsFactory factory) {
super(factory);
}
/**
* @generated
*/
public QName getTarget() {
return WFS.LockFeatureType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Class getType() {
return LockFeatureType.class;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value)
throws Exception {
//TODO: implement and remove call to super
return super.parse(instance, node, value);
}
}