org.geotools.wfs.bindings
Class DescribeFeatureTypeTypeBinding

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

public class DescribeFeatureTypeTypeBinding
extends AbstractComplexEMFBinding

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

         
  <xsd:complexType name="DescribeFeatureTypeType">
      <xsd:annotation>
          <xsd:documentation>
              The DescribeFeatureType operation allows a client application
              to request that a Web Feature Service describe one or more
              feature types.   A Web Feature Service must be able to generate
              feature descriptions as valid GML3 application schemas.
              The schemas generated by the DescribeFeatureType operation can
              be used by a client application to validate the output.
              Feature instances within the WFS interface must be specified
              using GML3.  The schema of feature instances specified within
              the WFS interface must validate against the feature schemas
              generated by the DescribeFeatureType request.
           </xsd:documentation>
      </xsd:annotation>
      <xsd:complexContent>
          <xsd:extension base="wfs:BaseRequestType">
              <xsd:sequence>
                  <xsd:element maxOccurs="unbounded" minOccurs="0"
                      name="TypeName" type="xsd:QName">
                      <xsd:annotation>
                          <xsd:documentation>
                          The TypeName element is used to enumerate the
                          feature types to be described.  If no TypeName
                          elements are specified then all features should
                          be described.  The name must be a valid type
                          that belongs to the feature content as defined
                          by the GML Application Schema.
                       </xsd:documentation>
                      </xsd:annotation>
                  </xsd:element>
              </xsd:sequence>
              <xsd:attribute default="text/xml; subtype=gml/3.1.1"
                  name="outputFormat" type="xsd:string" use="optional">
                  <xsd:annotation>
                      <xsd:documentation>
                       The outputFormat attribute is used to specify what schema
                       description language should be used to describe features.
                       The default value of 'text/xml; subtype=3.1.1' means that
                       the WFS must generate a GML3 application schema that can
                       be used to validate the GML3 output of a GetFeature
                       request or feature instances specified in Transaction
                       operations.
                       For the purposes of experimentation, vendor extension,
                       or even extensions that serve a specific community of
                       interest, other acceptable output format values may be
                       advertised by a WFS service in the capabilities document.
                       The meaning of such values in not defined in the WFS
                       specification.  The only proviso is such cases is that
                       clients may safely ignore outputFormat values that do
                       not recognize.
                    </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
DescribeFeatureTypeTypeBinding(WfsFactory factory)
           
 
Method Summary
 int getExecutionMode()
          This implementation returns Binding.OVERRIDE.
 javax.xml.namespace.QName getTarget()
           
 java.lang.Object parse(ElementInstance instance, Node node, java.lang.Object value)
          Simply returns an instance of DescribeFeatureTypeType and lets the framework to reflectively set the object properties.
 
Methods inherited from class org.geotools.xml.AbstractComplexEMFBinding
createEObject, getProperty, getType, setProperty
 
Methods inherited from class org.geotools.xml.AbstractComplexBinding
encode, getProperties, getProperties, initializeChildContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescribeFeatureTypeTypeBinding

public DescribeFeatureTypeTypeBinding(WfsFactory factory)
Method Detail

getTarget

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

getExecutionMode

public int getExecutionMode()
Description copied from class: AbstractComplexBinding
This implementation returns Binding.OVERRIDE.

Subclasses should override to change this behaviour.

Specified by:
getExecutionMode in interface Binding
Overrides:
getExecutionMode in class AbstractComplexBinding
Returns:
Binding.BEFORE so at parse time we can return an instance of DescribeFeatureTypeType, or the framework would try to create a BaseRequestType,which is abstract.
See Also:
Binding.AFTER, Binding.BEFORE, Binding.OVERRIDE

parse

public java.lang.Object parse(ElementInstance instance,
                              Node node,
                              java.lang.Object value)
                       throws java.lang.Exception
Simply returns an instance of DescribeFeatureTypeType and lets the framework to reflectively set the object properties.

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.