org.geotools.gml3.bindings
Class SurfaceTypeBinding

Object
  extended by AbstractComplexBinding
      extended by SurfaceTypeBinding
All Implemented Interfaces:
Comparable, Binding, ComplexBinding

public class SurfaceTypeBinding
extends AbstractComplexBinding
implements Comparable

Binding object for the type http://www.opengis.net/gml:SurfaceType.

  <code>
  <complexType name="SurfaceType">
      <annotation>
          <documentation>
              A Surface is a 2-dimensional primitive and is composed
              of one or more surface patches. The surface patches are
              connected to one another.
              The orientation of the surface is positive ("up"). The
              orientation of a surface chooses an "up" direction
              through the choice of the upward normal, which, if the
              surface is not a cycle, is the side of the surface from
              which the exterior boundary appears counterclockwise.
              Reversal of the surface orientation reverses the curve
              orientation of each boundary component, and interchanges
              the conceptual "up" and "down" direction of the surface.
              If the surface is the boundary of a solid, the "up"
              direction is usually outward. For closed surfaces, which
              have no boundary, the up direction is that of the surface
              patches, which must be consistent with one another. Its
              included surface patches describe the interior structure
              of the Surface.
           </documentation>
      </annotation>
      <complexContent>
          <extension base="gml:AbstractSurfaceType">
              <sequence>
                  <element ref="gml:patches">
                      <annotation>
                          <documentation>
                          This element encapsulates the patches of the
                          surface.
                       </documentation>
                      </annotation>
                  </element>
              </sequence>
          </extension>
      </complexContent>
  </complexType> 
        
   </code>
 

Module:
modules/extension/xsd-gml3 (gt-xsd-gml3.jar)

Field Summary
 
Fields inherited from interface Binding
AFTER, BEFORE, OVERRIDE
 
Constructor Summary
SurfaceTypeBinding(GeometryFactory gf)
           
 
Method Summary
 int compareTo(Object o)
           
 int getExecutionMode()
          This implementation returns Binding.OVERRIDE.
 QName getTarget()
           
 Class getType()
           
 Object parse(ElementInstance instance, Node node, Object value)
           
 
Methods inherited from class AbstractComplexBinding
encode, getProperties, getProperties, getProperty, initializeChildContext
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfaceTypeBinding

public SurfaceTypeBinding(GeometryFactory gf)
Method Detail

getTarget

public QName getTarget()
Specified by:
getTarget in interface Binding
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:
The execution mode of the binding, one of the constants AFTER, BEFORE, or OVERRIDE.
See Also:
Binding.AFTER, Binding.BEFORE, Binding.OVERRIDE

getType

public Class getType()

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

parse

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

Specified by:
parse in interface ComplexBinding
Overrides:
parse in class AbstractComplexBinding
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.

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


Copyright © 1996-2010 Geotools. All Rights Reserved.