cgl.ogc.wms.gml_Impl
Class GMLFeatureCollection_Impl

java.lang.Object
  extended bycgl.ogc.wms.gml_Impl.GMLFeature_Impl
      extended bycgl.ogc.wms.gml_Impl.GMLFeatureCollection_Impl
All Implemented Interfaces:
GMLFeature, GMLFeatureCollection

public class GMLFeatureCollection_Impl
extends GMLFeature_Impl
implements GMLFeatureCollection

Title:

Description:

Copyright: Copyright (c) 2005

Company: Indiana University - Computer Science Dept.

Version:
1.0
Author:
Ahmet Sayar

Field Summary
 
Fields inherited from class cgl.ogc.wms.gml_Impl.GMLFeature_Impl
element
 
Constructor Summary
GMLFeatureCollection_Impl(org.w3c.dom.Element element)
          Creates a new GMLFeatureCollection_Impl object.
GMLFeatureCollection_Impl(java.lang.String name)
          Creates a new GMLFeatureCollection_Impl object.
GMLFeatureCollection_Impl(java.lang.String name, java.lang.String prefix, java.lang.String nameSpace)
          Creates a new GMLFeatureCollection_Impl object.
 
Method Summary
 void addFeature(GMLFeature feature)
          adds a feature to the collection
static GMLFeatureCollection createGMLFeatureCollection(org.w3c.dom.Document doc, java.lang.String collectionName)
          creates a GMLFeatureCollection that doesn't contain a property and that hasn't an id.
 org.w3c.dom.Element getAsElement()
           
 GMLFeature getFeature(java.lang.String id)
          returns the feature that matches the submitted id
 GMLFeature[] getFeatures()
          returns all features of the collection
 GMLFeature[] getFeatures(java.lang.String name)
          returns the features that matvhes the submitted
 void removeFeature(java.lang.String id)
          removes a feature from the collection
 void setBoundingBox(double minx, double miny, double maxx, double maxy)
          sets the bounding box of the feature collection
 void setBoundingBox(GMLBox box)
          sets the bounding box of the feature collection
 java.lang.String toString()
           
 
Methods inherited from class cgl.ogc.wms.gml_Impl.GMLFeature_Impl
addProperty, createGMLFeature, createGMLFeature, getBoundedBy, getDescription, getFeatureTypeName, getGeoProperties, getId, getName, getNoneGeoProperties, getProperties, getProperty, isComplexProperty, isProperty, setDescription, setElement, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cgl.ogc.wms.gml.GMLFeature
addProperty, getBoundedBy, getDescription, getFeatureTypeName, getGeoProperties, getId, getName, getNoneGeoProperties, getProperties, getProperty, setDescription, setId, setName
 

Constructor Detail

GMLFeatureCollection_Impl

public GMLFeatureCollection_Impl(java.lang.String name)
Creates a new GMLFeatureCollection_Impl object.

Parameters:
name - String

GMLFeatureCollection_Impl

public GMLFeatureCollection_Impl(java.lang.String name,
                                 java.lang.String prefix,
                                 java.lang.String nameSpace)
Creates a new GMLFeatureCollection_Impl object.

Parameters:
name -
prefix -
nameSpace -

GMLFeatureCollection_Impl

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

Parameters:
element -
Method Detail

getAsElement

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

createGMLFeatureCollection

public static GMLFeatureCollection createGMLFeatureCollection(org.w3c.dom.Document doc,
                                                              java.lang.String collectionName)
creates a GMLFeatureCollection that doesn't contain a property and that hasn't an id.

Parameters:
doc - Document
collectionName - String
Returns:
GMLFeatureCollection

getFeatures

public GMLFeature[] getFeatures()
returns all features of the collection

Specified by:
getFeatures in interface GMLFeatureCollection
Returns:
GMLFeature[]

getFeature

public GMLFeature getFeature(java.lang.String id)
returns the feature that matches the submitted id

Specified by:
getFeature in interface GMLFeatureCollection
Parameters:
id - String
Returns:
GMLFeature

getFeatures

public GMLFeature[] getFeatures(java.lang.String name)
returns the features that matvhes the submitted

Specified by:
getFeatures in interface GMLFeatureCollection
Parameters:
name - String
Returns:
GMLFeature[]

addFeature

public void addFeature(GMLFeature feature)
adds a feature to the collection

Specified by:
addFeature in interface GMLFeatureCollection
Parameters:
feature - GMLFeature

removeFeature

public void removeFeature(java.lang.String id)
removes a feature from the collection

Specified by:
removeFeature in interface GMLFeatureCollection
Parameters:
id - String

setBoundingBox

public void setBoundingBox(double minx,
                           double miny,
                           double maxx,
                           double maxy)
sets the bounding box of the feature collection

Specified by:
setBoundingBox in interface GMLFeatureCollection
Parameters:
minx - double
miny - double
maxx - double
maxy - double

setBoundingBox

public void setBoundingBox(GMLBox box)
sets the bounding box of the feature collection

Specified by:
setBoundingBox in interface GMLFeatureCollection
Parameters:
box - GMLBox

toString

public java.lang.String toString()
Overrides:
toString in class GMLFeature_Impl
Returns:
String