Class MultiPolygonTypeBinding

  • All Implemented Interfaces:
    Comparable, Binding, ComplexBinding
    Direct Known Subclasses:

    public class MultiPolygonTypeBinding
    extends AbstractComplexBinding
    implements Comparable
    Binding object for the type

      <complexType name="MultiPolygonType">
              <documentation>A MultiPolygon is defined by one or more Polygons, referenced through polygonMember elements. Deprecated with GML version 3.0. Use MultiSurfaceType instead.</documentation>
              <extension base="gml:AbstractGeometricAggregateType">
                      <element maxOccurs="unbounded" minOccurs="0" ref="gml:polygonMember"/>
    • Constructor Detail

      • MultiPolygonTypeBinding

        public MultiPolygonTypeBinding​(GeometryFactory gFactory)
    • Method Detail

      • getTarget

        public QName getTarget()
        Specified by:
        getTarget in interface Binding
        The qualified name of the target for the binding.
      • getType

        public Class getType()
        Specified by:
        getType in interface Binding
        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
        parse in class AbstractComplexBinding
        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.
        The parsed object, or null if the component could not be parsed.
        Exception - Strategy objects should not attempt to handle any exceptions.
      • compareTo

        public int compareTo​(Object o)
        Implement comparable because both MultiPolygonBinding and MultiSurfaceBinding are bound to the same class, MultiPolygon. Since MultiPolygon is deprecated by gml3 MultiSurface always wins.
        Specified by:
        compareTo in interface Comparable