org.geotools.feature.simple
Class SimpleFeatureTypeImpl

Object
  extended by PropertyTypeImpl
      extended by AttributeTypeImpl
          extended by ComplexTypeImpl
              extended by FeatureTypeImpl
                  extended by SimpleFeatureTypeImpl
All Implemented Interfaces:
SimpleFeatureType, AttributeType, ComplexType, FeatureType, PropertyType
Direct Known Subclasses:
DefaultFeatureType

public class SimpleFeatureTypeImpl
extends FeatureTypeImpl
implements SimpleFeatureType

Implementation fo SimpleFeatureType, subtypes must be atomic and are stored in a list.

Author:
Justin, Ben Caradoc-Davies, CSIRO Exploration and Mining
Module:
modules/library/main (gt-main.jar)

Field Summary
 
Fields inherited from class AttributeTypeImpl
identified
 
Fields inherited from class PropertyTypeImpl
binding, description, isAbstract, name, restrictions, superType, userData
 
Constructor Summary
SimpleFeatureTypeImpl(Name name, List<AttributeDescriptor> schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
           
 
Method Summary
 int getAttributeCount()
           
 List<AttributeDescriptor> getAttributeDescriptors()
           
 AttributeDescriptor getDescriptor(int index)
           
 AttributeDescriptor getDescriptor(Name name)
           
 AttributeDescriptor getDescriptor(String name)
           
 AttributeType getType(int index)
           
 AttributeType getType(Name name)
           
 AttributeType getType(String name)
           
 String getTypeName()
           
 List<AttributeType> getTypes()
           
 int indexOf(Name name)
           
 int indexOf(String name)
           
 
Methods inherited from class FeatureTypeImpl
equals, getCoordinateReferenceSystem, getGeometryDescriptor, hashCode
 
Methods inherited from class ComplexTypeImpl
getBinding, getDescriptors, isInline, toString
 
Methods inherited from class AttributeTypeImpl
createDefaultValue, getSuper, isIdentified, parse
 
Methods inherited from class PropertyTypeImpl
getDescription, getName, getRestrictions, getUserData, isAbstract
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface FeatureType
getCoordinateReferenceSystem, getGeometryDescriptor, isIdentified
 
Methods inherited from interface ComplexType
getBinding, getDescriptors, isInline
 
Methods inherited from interface AttributeType
getSuper
 
Methods inherited from interface PropertyType
equals, getDescription, getName, getRestrictions, getUserData, hashCode, isAbstract
 

Constructor Detail

SimpleFeatureTypeImpl

public SimpleFeatureTypeImpl(Name name,
                             List<AttributeDescriptor> schema,
                             GeometryDescriptor defaultGeometry,
                             boolean isAbstract,
                             List<Filter> restrictions,
                             AttributeType superType,
                             InternationalString description)
Method Detail

getAttributeDescriptors

public final List<AttributeDescriptor> getAttributeDescriptors()
Specified by:
getAttributeDescriptors in interface SimpleFeatureType
See Also:
SimpleFeatureType.getAttributeDescriptors()

getTypes

public List<AttributeType> getTypes()
Specified by:
getTypes in interface SimpleFeatureType

getType

public AttributeType getType(Name name)
Specified by:
getType in interface SimpleFeatureType

getType

public AttributeType getType(String name)
Specified by:
getType in interface SimpleFeatureType

getType

public AttributeType getType(int index)
Specified by:
getType in interface SimpleFeatureType

getDescriptor

public AttributeDescriptor getDescriptor(Name name)
Specified by:
getDescriptor in interface SimpleFeatureType
Specified by:
getDescriptor in interface ComplexType
Overrides:
getDescriptor in class ComplexTypeImpl

getDescriptor

public AttributeDescriptor getDescriptor(String name)
Specified by:
getDescriptor in interface SimpleFeatureType
Specified by:
getDescriptor in interface ComplexType
Overrides:
getDescriptor in class ComplexTypeImpl

getDescriptor

public AttributeDescriptor getDescriptor(int index)
Specified by:
getDescriptor in interface SimpleFeatureType

indexOf

public int indexOf(Name name)
Specified by:
indexOf in interface SimpleFeatureType

indexOf

public int indexOf(String name)
Specified by:
indexOf in interface SimpleFeatureType

getAttributeCount

public int getAttributeCount()
Specified by:
getAttributeCount in interface SimpleFeatureType

getTypeName

public String getTypeName()
Specified by:
getTypeName in interface SimpleFeatureType


Copyright © 1996-2009 Geotools. All Rights Reserved.