org.geotools.ows.bindings
Class PositionTypeBinding

java.lang.Object
  extended by org.geotools.xml.AbstractSimpleBinding
      extended by org.geotools.ows.bindings.PositionTypeBinding
All Implemented Interfaces:
Binding, SimpleBinding

public class PositionTypeBinding
extends AbstractSimpleBinding

Binding object for the type http://www.opengis.net/ows:PositionType.

         
  <simpleType name="PositionType">
      <annotation>
          <documentation>Position instances hold the coordinates of a position in a coordinate reference system (CRS) referenced by the related "crs" attribute or elsewhere. For an angular coordinate axis that is physically continuous for multiple revolutions, but whose recorded values can be discontinuous, special conditions apply when the bounding box is continuous across the value discontinuity:
  a)  If the bounding box is continuous clear around this angular axis, then ordinate values of minus and plus infinity shall be used.
  b)  If the bounding box is continuous across the value discontinuity but is not continuous clear around this angular axis, then some non-normal value can be used if specified for a specific OWS use of the BoundingBoxType. For more information, see Subclauses 10.2.5 and C.13. </documentation>
          <documentation>This type is adapted from DirectPositionType and doubleList of GML 3.1. The adaptations include omission of all the attributes, since the needed information is included in the BoundingBoxType. </documentation>
      </annotation>
      <list itemType="double"/>
  </simpleType>

          
         


Field Summary
 
Fields inherited from interface org.geotools.xml.Binding
AFTER, BEFORE, OVERRIDE
 
Constructor Summary
PositionTypeBinding(Ows10Factory factory)
           
 
Method Summary
 javax.xml.namespace.QName getTarget()
           
 java.lang.Class getType()
           
 java.lang.Object parse(InstanceComponent instance, java.lang.Object value)
           
 
Methods inherited from class org.geotools.xml.AbstractSimpleBinding
encode, getExecutionMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionTypeBinding

public PositionTypeBinding(Ows10Factory 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()

Returns:
The java type this binding maps to.

parse

public java.lang.Object parse(InstanceComponent instance,
                              java.lang.Object value)
                       throws java.lang.Exception

Specified by:
parse in interface SimpleBinding
Overrides:
parse in class AbstractSimpleBinding
Parameters:
instance - The component 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


Copyright © 1996-2010 Geotools. All Rights Reserved.