Package org.geotools.wfs.bindings
Class LockFeatureTypeBinding
- Object
-
- AbstractComplexBinding
-
- AbstractComplexEMFBinding
-
- 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>
-
-
Constructor Summary
Constructors Constructor Description LockFeatureTypeBinding(WfsFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QName
getTarget()
Class
getType()
Object
parse(ElementInstance instance, Node node, Object value)
-
Methods inherited from class AbstractComplexEMFBinding
createEObject, getProperty, setProperty
-
Methods inherited from class AbstractComplexBinding
encode, getExecutionMode, getProperties, initialize, initializeChildContext
-
-
-
-
Constructor Detail
-
LockFeatureTypeBinding
public LockFeatureTypeBinding(WfsFactory factory)
-
-
Method Detail
-
getTarget
public QName getTarget()
- Returns:
- The qualified name of the target for the binding.
-
getType
public Class getType()
- Specified by:
getType
in interfaceBinding
- Overrides:
getType
in classAbstractComplexEMFBinding
- Returns:
- The java type this binding maps to.
-
parse
public Object parse(ElementInstance instance, Node node, Object value) throws Exception
- Specified by:
parse
in interfaceComplexBinding
- Overrides:
parse
in classAbstractComplexEMFBinding
- 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.
-
-