org.deegree_impl.gml
Class GMLLineString_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLGeometry_Impl
      extended byorg.deegree_impl.gml.GMLLineString_Impl
All Implemented Interfaces:
GMLGeometry, GMLLineString

public class GMLLineString_Impl
extends GMLGeometry_Impl
implements GMLLineString

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

Version:
07.02.2001

Author:
Andreas Poth

Field Summary
 
Fields inherited from class org.deegree_impl.gml.GMLGeometry_Impl
element
 
Constructor Summary
GMLLineString_Impl(org.w3c.dom.Element element)
          Creates a new GMLLineString_Impl object.
 
Method Summary
 void appendCoord(GMLCoord coord)
           
static GMLLineString createGMLLineString(org.w3c.dom.Document doc)
          factory method to create a GMLLineString. the linestring that will be returned doesn't contain any point
 org.w3c.dom.Element getAsElement()
           
 GMLCoordinates getCoordinates()
          returns the coordinate (location) of the point as GMLCoordinates
 GMLCoord[] getCoords()
          returns the coordinates (location) of the LineString as as array of GMLCoord
 void setCoordinates(GMLCoordinates coordinates)
           
 void setCoords(GMLCoord[] coord)
           
 
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

GMLLineString_Impl

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

Parameters:
element -
Method Detail

createGMLLineString

public static GMLLineString createGMLLineString(org.w3c.dom.Document doc)
factory method to create a GMLLineString. the linestring that will be returned doesn't contain any point


getAsElement

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

getCoords

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

Specified by:
getCoords in interface GMLLineString

setCoords

public void setCoords(GMLCoord[] coord)
               throws GMLException
Specified by:
setCoords in interface GMLLineString
Throws:
GMLException
See Also:
already existing coords will be removed

appendCoord

public void appendCoord(GMLCoord coord)
                 throws GMLException
Specified by:
appendCoord in interface GMLLineString
Throws:
GMLException
See Also:
GMLLinearRing_Impl.getCoord()

getCoordinates

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

Specified by:
getCoordinates in interface GMLLineString

setCoordinates

public void setCoordinates(GMLCoordinates coordinates)
Specified by:
setCoordinates in interface GMLLineString
See Also:
GMLLinearRing_Impl.getCoord()