org.deegree_impl.gml
Class GMLFeatureCollection_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLFeature_Impl
      extended byorg.deegree_impl.gml.GMLFeatureCollection_Impl
All Implemented Interfaces:
GMLFeature, GMLFeatureCollection

public class GMLFeatureCollection_Impl
extends GMLFeature_Impl
implements GMLFeatureCollection

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

Version:
07.02.2001

Author:
Andreas Poth

Field Summary
 
Fields inherited from class org.deegree_impl.gml.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 name
private  boolean isFeatureMember(org.w3c.dom.Node node)
          in a future release this check has to be performed against the schema
 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 org.deegree_impl.gml.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 org.deegree.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 -

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:

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.


getFeatures

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

Specified by:
getFeatures in interface GMLFeatureCollection

isFeatureMember

private boolean isFeatureMember(org.w3c.dom.Node node)
in a future release this check has to be performed against the schema


getFeature

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

Specified by:
getFeature in interface GMLFeatureCollection

getFeatures

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

Specified by:
getFeatures in interface GMLFeatureCollection

addFeature

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

Specified by:
addFeature in interface GMLFeatureCollection

removeFeature

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

Specified by:
removeFeature in interface GMLFeatureCollection

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

setBoundingBox

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

Specified by:
setBoundingBox in interface GMLFeatureCollection

toString

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