org.geotools.ows.bindings
Class PositionType2DBinding

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

public class PositionType2DBinding
extends AbstractSimpleBinding

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

         
  <simpleType name="PositionType2D">
      <annotation>
          <documentation>Two-dimensional position instances hold the longitude and latitude coordinates of a position in the 2D WGS 84 coordinate reference system. The longitude value shall be listed first, followed by the latitude value, both in decimal degrees. Latitude values shall range from -90 to +90 degrees, and longitude values shall normally range from -180 to +180 degrees. For the longitude axis, special conditions apply when the bounding box is continuous across the +/- 180 degrees meridian longitude value discontinuity:
  a)  If the bounding box is continuous clear around the Earth, then longitude 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 the Earth, then some non-normal value can be used if specified for a specific OWS use of the WGS84BoundingBoxType. For more information, see Subclauses 10.4.5 and C.13. </documentation>
      </annotation>
      <restriction base="ows:PositionType">
          <length value="2"/>
      </restriction>
  </simpleType>

          
         


Field Summary
 
Fields inherited from interface org.geotools.xml.Binding
AFTER, BEFORE, OVERRIDE
 
Constructor Summary
PositionType2DBinding(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

PositionType2DBinding

public PositionType2DBinding(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.