org.geotools.feature
Class DefaultFeatureTypeFactory

Object
  extended by FeatureTypes
      extended by FeatureTypeBuilder
          extended by FeatureTypeFactory
              extended by DefaultFeatureTypeFactory
All Implemented Interfaces:
Factory

public class DefaultFeatureTypeFactory
extends FeatureTypeFactory

A simple DefaultFeatureTypeFactory which stores its Attributes in a list. Oppurtunistic reuse is easy! Simply subclass this and override the method createFeatureType to return whatever type of FeatureType you want.

Author:
Ian Schneider, USDA-ARS
Module:
modules/library/legacy (gt-legacy.jar)

Field Summary
 
Fields inherited from class FeatureTypeBuilder
ABSTRACT_FEATURE_TYPE
 
Fields inherited from class FeatureTypes
ANY_LENGTH, DEFAULT_NAMESPACE, DEFAULT_TYPENAME, EMPTY
 
Constructor Summary
DefaultFeatureTypeFactory()
           
 
Method Summary
protected  void add(AttributeType type)
          DOCUMENT ME!
protected  void add(int idx, AttributeType type)
          DOCUMENT ME!
protected  FeatureType createAbstractType()
           
protected  FeatureType createFeatureType()
          DOCUMENT ME!
 AttributeType get(int idx)
          DOCUMENT ME!
 int getAttributeCount()
          DOCUMENT ME!
protected  AttributeType remove(AttributeType type)
          DOCUMENT ME!
protected  AttributeType remove(int idx)
          DOCUMENT ME!
protected  AttributeType set(int idx, AttributeType type)
          DOCUMENT ME!
 
Methods inherited from class FeatureTypeFactory
createTemplate, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newInstance, toString
 
Methods inherited from class FeatureTypeBuilder
addBaseTypes, addType, addType, addTypes, check, contains, getDefaultGeometry, getFeatureType, getImplementationHints, getName, getNamespace, getSuperTypes, importType, importType, isAbstract, removeAll, removeType, removeType, setAbstract, setDefaultGeometry, setName, setNamespace, setSuperTypes, setType, swap
 
Methods inherited from class FeatureTypes
ancestors, equals, equals, equals, equals, equalsAncestors, equalsExact, equalsExact, equalsExact, equalsExact, equalsId, getAncestors, getFieldLength, isDecendedFrom, isDecendedFrom, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, transform, transform, transform
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFeatureTypeFactory

public DefaultFeatureTypeFactory()
Method Detail

add

protected void add(AttributeType type)
            throws IllegalArgumentException
Description copied from class: FeatureTypeBuilder
DOCUMENT ME!

Specified by:
add in class FeatureTypeBuilder
Throws:
IllegalArgumentException

add

protected void add(int idx,
                   AttributeType type)
            throws ArrayIndexOutOfBoundsException,
                   IllegalArgumentException
Description copied from class: FeatureTypeBuilder
DOCUMENT ME!

Specified by:
add in class FeatureTypeBuilder
Throws:
ArrayIndexOutOfBoundsException
IllegalArgumentException

createFeatureType

protected FeatureType createFeatureType()
                                 throws SchemaException
Description copied from class: FeatureTypeBuilder
DOCUMENT ME!

Specified by:
createFeatureType in class FeatureTypeBuilder
Throws:
SchemaException

get

public AttributeType get(int idx)
                  throws ArrayIndexOutOfBoundsException
Description copied from class: FeatureTypeBuilder
DOCUMENT ME!

Specified by:
get in class FeatureTypeBuilder
Throws:
ArrayIndexOutOfBoundsException

getAttributeCount

public int getAttributeCount()
Description copied from class: FeatureTypeBuilder
DOCUMENT ME!

Specified by:
getAttributeCount in class FeatureTypeBuilder

remove

protected AttributeType remove(int idx)
                        throws ArrayIndexOutOfBoundsException
Description copied from class: FeatureTypeBuilder
DOCUMENT ME!

Specified by:
remove in class FeatureTypeBuilder
Throws:
ArrayIndexOutOfBoundsException

remove

protected AttributeType remove(AttributeType type)
Description copied from class: FeatureTypeBuilder
DOCUMENT ME!

Specified by:
remove in class FeatureTypeBuilder

set

protected AttributeType set(int idx,
                            AttributeType type)
                     throws ArrayIndexOutOfBoundsException,
                            IllegalArgumentException
Description copied from class: FeatureTypeBuilder
DOCUMENT ME!

Specified by:
set in class FeatureTypeBuilder
Throws:
ArrayIndexOutOfBoundsException
IllegalArgumentException

createAbstractType

protected FeatureType createAbstractType()
                                  throws SchemaException
Throws:
SchemaException


Copyright © 1996-2010 Geotools. All Rights Reserved.