org.geotools.feature
Class SimpleFeatureType

java.lang.Object
  extended byorg.geotools.feature.DefaultFeatureType
      extended byorg.geotools.feature.SimpleFeatureType
All Implemented Interfaces:
FeatureType

public class SimpleFeatureType
extends DefaultFeatureType

A basic implementation of FeatureType.

Version:
$Id: SimpleFeatureType.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
Ian Schneider

Field Summary
 
Fields inherited from class org.geotools.feature.DefaultFeatureType
EMPTY
 
Constructor Summary
SimpleFeatureType(java.lang.String typeName, java.lang.String namespace, java.util.Collection types, java.util.Collection superTypes, GeometryAttributeType defaultGeom)
          Deprecated. use SimpleFeatureType(String,URI,Collection,Collection,GeometryAttributeType)
SimpleFeatureType(java.lang.String typeName, java.net.URI namespace, java.util.Collection types, java.util.Collection superTypes, GeometryAttributeType defaultGeom)
          Constructs a new SimpleFeatureType.
 
Methods inherited from class org.geotools.feature.DefaultFeatureType
create, create, duplicate, equals, equals, find, find, getAncestors, getAttributeCount, getAttributeType, getAttributeType, getAttributeTypes, getDefaultGeometry, getNamespace, getTypeName, hasAttributeType, hashCode, isAbstract, isDescendedFrom, isDescendedFrom, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleFeatureType

public SimpleFeatureType(java.lang.String typeName,
                         java.lang.String namespace,
                         java.util.Collection types,
                         java.util.Collection superTypes,
                         GeometryAttributeType defaultGeom)
                  throws SchemaException,
                         java.lang.NullPointerException
Deprecated. use SimpleFeatureType(String,URI,Collection,Collection,GeometryAttributeType)

Parameters:
typeName -
namespace -
types -
superTypes -
defaultGeom -
Throws:
SchemaException
java.lang.NullPointerException

SimpleFeatureType

public SimpleFeatureType(java.lang.String typeName,
                         java.net.URI namespace,
                         java.util.Collection types,
                         java.util.Collection superTypes,
                         GeometryAttributeType defaultGeom)
                  throws java.lang.NullPointerException
Constructs a new SimpleFeatureType.

Attributes from the superTypes will be copied to the list of attributes for this feature type.

Parameters:
typeName - The name to give this FeatureType.
namespace - The namespace of the new FeatureType.
types - The attributeTypes to use for validation.
superTypes - The ancestors of this FeatureType.
defaultGeom - The attributeType to set as the defaultGeometry.
Throws:
SchemaException - For problems making the FeatureType.
java.lang.NullPointerException - If typeName is null.


Copyright © GeoTools. All Rights Reserved.