org.deegree_impl.gml
Class GMLLinearRing_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLGeometry_Impl
      extended byorg.deegree_impl.gml.GMLLinearRing_Impl
All Implemented Interfaces:
GMLGeometry, GMLLinearRing

public class GMLLinearRing_Impl
extends GMLGeometry_Impl
implements GMLLinearRing

----------------------------------------------------------

Version:
07.02.2001

Author:
Andreas Poth

Field Summary
 
Fields inherited from class org.deegree_impl.gml.GMLGeometry_Impl
element
 
Constructor Summary
GMLLinearRing_Impl(org.w3c.dom.Element element)
          Creates a new GMLLinearRing_Impl object.
 
Method Summary
static GMLLinearRing createGMLLinearRing(org.w3c.dom.Document doc)
          factory method to create a GMLLinearRing. the linear ring that will be returned doesn't contain any point
 org.w3c.dom.Element getAsElement()
           
 GMLCoord[] getCoord()
          returns the coordinates (location) of the LineString as as array of GMLCoord
 GMLCoordinates getCoordinates()
          returns the coordinate (location) of the point as GMLCoordinates
 void setCoord(GMLCoord[] coord)
           
 void setCoordinates(GMLCoordinates coordinates)
           
 
Methods inherited from class org.deegree_impl.gml.GMLGeometry_Impl
getId, getName, getSrs, setId, setSrs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.gml.GMLGeometry
getId, getName, getSrs, setId, setSrs
 

Constructor Detail

GMLLinearRing_Impl

public GMLLinearRing_Impl(org.w3c.dom.Element element)
Creates a new GMLLinearRing_Impl object.

Parameters:
element -
Method Detail

createGMLLinearRing

public static GMLLinearRing createGMLLinearRing(org.w3c.dom.Document doc)
factory method to create a GMLLinearRing. the linear ring that will be returned doesn't contain any point


getAsElement

public org.w3c.dom.Element getAsElement()
Overrides:
getAsElement in class GMLGeometry_Impl
Returns:

getCoord

public GMLCoord[] getCoord()
returns the coordinates (location) of the LineString as as array of GMLCoord

Specified by:
getCoord in interface GMLLinearRing

setCoord

public void setCoord(GMLCoord[] coord)
              throws GMLException
Specified by:
setCoord in interface GMLLinearRing
Throws:
GMLException
See Also:
a exception should be thrown if the coords are not homogen or the coords are not building a closed ring.

getCoordinates

public GMLCoordinates getCoordinates()
returns the coordinate (location) of the point as GMLCoordinates

Specified by:
getCoordinates in interface GMLLinearRing

setCoordinates

public void setCoordinates(GMLCoordinates coordinates)
                    throws GMLException
Specified by:
setCoordinates in interface GMLLinearRing
Throws:
GMLException
See Also:
a exception should be thrown if the coords are not building a closed ring.