org.geotools.feature.type
Class ComplexFeatureTypeImpl

Object
  extended by PropertyTypeImpl
      extended by AttributeTypeImpl
          extended by ComplexTypeImpl
              extended by FeatureTypeImpl
                  extended by UniqueNameFeatureTypeImpl
                      extended by ComplexFeatureTypeImpl
All Implemented Interfaces:
AttributeType, ComplexType, FeatureType, PropertyType

public class ComplexFeatureTypeImpl
extends UniqueNameFeatureTypeImpl

This is a specialization of complex feature type that can be nested inside another feature type. A system attribute descriptor called "FEATURE_LINK" is added in the descriptors so it can be used to link the type to its parent type, without being encoded, since it doesn't exist in the real schema.

Author:
Rini Angreani (CSIRO Earth Science and Resource Engineering)

Field Summary
 
Fields inherited from class AttributeTypeImpl
identified
 
Fields inherited from class PropertyTypeImpl
binding, description, isAbstract, name, restrictions, superType, userData
 
Constructor Summary
ComplexFeatureTypeImpl(ComplexFeatureTypeImpl type, Collection<PropertyDescriptor> schema)
          Create a clone of an existing ComplexFeatureTypeImpl with new schema.
ComplexFeatureTypeImpl(Name name, Collection<PropertyDescriptor> schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
          Constructor for complex feature type with fake feature type descriptor provided.
 
Method Summary
 Collection<PropertyDescriptor> getTypeDescriptors()
          Return all the descriptors that come from the schema, excluding the system descriptors, such as 'FEATURE_LINK', used for linking features.
 
Methods inherited from class UniqueNameFeatureTypeImpl
equals, hashCode
 
Methods inherited from class FeatureTypeImpl
getCoordinateReferenceSystem, getGeometryDescriptor
 
Methods inherited from class ComplexTypeImpl
getBinding, getDescriptor, getDescriptor, 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
isIdentified
 
Methods inherited from interface ComplexType
getBinding, getDescriptor, getDescriptor, getDescriptors, isInline
 
Methods inherited from interface AttributeType
getSuper
 
Methods inherited from interface PropertyType
getDescription, getName, getRestrictions, getUserData, isAbstract
 

Constructor Detail

ComplexFeatureTypeImpl

public ComplexFeatureTypeImpl(Name name,
                              Collection<PropertyDescriptor> schema,
                              GeometryDescriptor defaultGeometry,
                              boolean isAbstract,
                              List<Filter> restrictions,
                              AttributeType superType,
                              InternationalString description)
Constructor for complex feature type with fake feature type descriptor provided.

Parameters:
name - Name of feature type
schema - Schema property descriptors
defaultGeometry - Default geometry
isAbstract - True if this type is abstract
restrictions - List of restrictions
superType - Super type
description - Feature description
featureLink - System attribute used to link between features

ComplexFeatureTypeImpl

public ComplexFeatureTypeImpl(ComplexFeatureTypeImpl type,
                              Collection<PropertyDescriptor> schema)
Create a clone of an existing ComplexFeatureTypeImpl with new schema.

Parameters:
type - Type to copy
schema - Set of descriptors
Method Detail

getTypeDescriptors

public Collection<PropertyDescriptor> getTypeDescriptors()
Return all the descriptors that come from the schema, excluding the system descriptors, such as 'FEATURE_LINK', used for linking features.

Returns:
schema descriptors


Copyright © 1996-2014 Geotools. All Rights Reserved.