it.cutruzzula.lwkt.geometry
Class MultiLineString

java.lang.Object
  extended by it.cutruzzula.lwkt.geometry.AbstractGeometry
      extended by it.cutruzzula.lwkt.geometry.MultiLineString

public class MultiLineString
extends AbstractGeometry

The class represents a MULTILINESTRING object.


Constructor Summary
MultiLineString(java.util.List<LineString> lineStrings)
          Constructor.
 
Method Summary
 java.util.List<LineString> getLineStrings()
          Method to get the list of line-strings.
 java.lang.String getType()
          Method to get the geometry type.
 
Methods inherited from class it.cutruzzula.lwkt.geometry.AbstractGeometry
getDimensions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiLineString

public MultiLineString(java.util.List<LineString> lineStrings)
                throws java.lang.Exception
Constructor.

Parameters:
lineStrings - A java.util.List of LineString objects
Throws:
A - generic exception if dimensions are not homogeneous
java.lang.Exception
Method Detail

getLineStrings

public java.util.List<LineString> getLineStrings()
Method to get the list of line-strings.

Returns:
A java.util.List of LineString objects

getType

public java.lang.String getType()
Method to get the geometry type.

Specified by:
getType in class AbstractGeometry
Returns:
"MULTILINESTRING" constant