Class PolygonType

  extended by net.opengis.gml.AbstractGMLType
      extended by net.opengis.gml.AbstractGeometryType
          extended by net.opengis.gml.AbstractGeometricPrimitiveType
              extended by net.opengis.gml.AbstractSurfaceType
                  extended by net.opengis.gml.PolygonType

public class PolygonType
extends AbstractSurfaceType

A Polygon is a special surface that is defined by a single surface patch. The boundary of this patch is coplanar and the polygon uses planar interpolation in its interior. It is backwards compatible with the Polygon of GML 2, GM_Polygon of ISO 19107 is implemented by PolygonPatch.

Java class for PolygonType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="PolygonType">
     <extension base="{}AbstractSurfaceType">
         <element ref="{}exterior" minOccurs="0"/>
         <element ref="{}interior" maxOccurs="unbounded" minOccurs="0"/>

Field Summary
protected  AbstractRingPropertyType exterior
protected  List<AbstractRingPropertyType> interior
Fields inherited from class net.opengis.gml.AbstractGeometryType
axisLabels, gid, srsDimension, srsName, uomLabels
Fields inherited from class net.opengis.gml.AbstractGMLType
description, id, metaDataProperty, name
Constructor Summary
Method Summary
 AbstractRingPropertyType getExterior()
          Gets the value of the exterior property.
 List<AbstractRingPropertyType> getInterior()
          Gets the value of the interior property.
 void setExterior(AbstractRingPropertyType value)
          Sets the value of the exterior property.
Methods inherited from class net.opengis.gml.AbstractGeometryType
getAxisLabels, getGid, getSrsDimension, getSrsName, getUomLabels, setGid, setSrsDimension, setSrsName
Methods inherited from class net.opengis.gml.AbstractGMLType
getDescription, getId, getMetaDataProperty, getName, setDescription, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


protected AbstractRingPropertyType exterior


protected List<AbstractRingPropertyType> interior
Constructor Detail


public PolygonType()
Method Detail


public AbstractRingPropertyType getExterior()
Gets the value of the exterior property.

possible object is AbstractRingPropertyType


public void setExterior(AbstractRingPropertyType value)
Sets the value of the exterior property.

value - allowed object is AbstractRingPropertyType


public List<AbstractRingPropertyType> getInterior()
Gets the value of the interior property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the interior property.

For example, to add a new item, do as follows:


Objects of the following type(s) are allowed in the list AbstractRingPropertyType

Copyright © 2008. All Rights Reserved.