org.geotools.feature
Class FeatureCollections

Object
  extended by FeatureCollections
All Implemented Interfaces:
Factory
Direct Known Subclasses:
DefaultFeatureCollections

Deprecated. Use DefaultFeatureCollection

public abstract class FeatureCollections
extends Object
implements Factory

A utility class for working with FeatureCollections. Provides a mechanism for obtaining a SimpleFeatureCollection instance.

Author:
Ian Schneider

Constructor Summary
FeatureCollections()
          Deprecated.  
 
Method Summary
protected abstract  SimpleFeatureCollection createCollection()
          Deprecated. Subclasses must implement this to return a new SimpleFeatureCollection object.
protected abstract  SimpleFeatureCollection createCollection(String id)
          Deprecated. Subclasses must implement this to return a new SimpleFeatureCollection object with a particular id.
 Map<RenderingHints.Key,Object> getImplementationHints()
          Deprecated. Returns the implementation hints.
static SimpleFeatureCollection newCollection()
          Deprecated. Use new DefaultFeatureCollection(null,null)
static SimpleFeatureCollection newCollection(String id)
          Deprecated. Use new DefaultFeatureCollection( id, null )
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureCollections

public FeatureCollections()
Deprecated. 
Method Detail

newCollection

public static SimpleFeatureCollection newCollection()
Deprecated. Use new DefaultFeatureCollection(null,null)

create a new SimpleFeatureCollection using the current default factory.

Returns:
A SimpleFeatureCollection instance.

newCollection

public static SimpleFeatureCollection newCollection(String id)
Deprecated. Use new DefaultFeatureCollection( id, null )

Creates a new SimpleFeatureCollection with a particular id using the current default factory.

Parameters:
id - The id of the feature collection.
Returns:
A new SimpleFeatureCollection intsance with the specified id.
Since:
2.4

createCollection

protected abstract SimpleFeatureCollection createCollection()
Deprecated. 
Subclasses must implement this to return a new SimpleFeatureCollection object.

Returns:
A new FeatureCollection

createCollection

protected abstract SimpleFeatureCollection createCollection(String id)
Deprecated. 
Subclasses must implement this to return a new SimpleFeatureCollection object with a particular id.

Parameters:
id - The identification of the feature collection.
Returns:
A new SimpleFeatureCollection with the specified id.

getImplementationHints

public Map<RenderingHints.Key,Object> getImplementationHints()
Deprecated. 
Returns the implementation hints. The default implementation returns en empty map.

Specified by:
getImplementationHints in interface Factory
Returns:
The map of hints, or an empty map if none.


Copyright © 1996-2014 Geotools. All Rights Reserved.