org.geotools.feature.type
Class ComplexFeatureTypeImpl

java.lang.Object
  extended by org.geotools.feature.type.PropertyTypeImpl
      extended by org.geotools.feature.type.AttributeTypeImpl
          extended by org.geotools.feature.type.ComplexTypeImpl
              extended by org.geotools.feature.type.FeatureTypeImpl
                  extended by org.geotools.feature.type.ComplexFeatureTypeImpl
All Implemented Interfaces:
org.opengis.feature.type.AttributeType, org.opengis.feature.type.ComplexType, org.opengis.feature.type.FeatureType, org.opengis.feature.type.PropertyType

public class ComplexFeatureTypeImpl
extends FeatureTypeImpl

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, Curtin University of Technology

Field Summary
 
Fields inherited from class org.geotools.feature.type.AttributeTypeImpl
identified
 
Fields inherited from class org.geotools.feature.type.PropertyTypeImpl
binding, description, isAbstract, name, restrictions, superType, userData
 
Constructor Summary
ComplexFeatureTypeImpl(ComplexFeatureTypeImpl type, java.util.Collection<org.opengis.feature.type.PropertyDescriptor> schema)
          Create a clone of an existing ComplexFeatureTypeImpl with new schema.
ComplexFeatureTypeImpl(org.opengis.feature.type.Name name, java.util.Collection<org.opengis.feature.type.PropertyDescriptor> schema, org.opengis.feature.type.GeometryDescriptor defaultGeometry, boolean isAbstract, java.util.List<org.opengis.filter.Filter> restrictions, org.opengis.feature.type.AttributeType superType, org.opengis.util.InternationalString description)
          Constructor for complex feature type with fake feature type descriptor provided.
 
Method Summary
 java.util.Collection<org.opengis.feature.type.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 org.geotools.feature.type.FeatureTypeImpl
equals, getCoordinateReferenceSystem, getGeometryDescriptor, hashCode
 
Methods inherited from class org.geotools.feature.type.ComplexTypeImpl
getBinding, getDescriptor, getDescriptor, getDescriptors, isInline, toString
 
Methods inherited from class org.geotools.feature.type.AttributeTypeImpl
createDefaultValue, getSuper, isIdentified, parse
 
Methods inherited from class org.geotools.feature.type.PropertyTypeImpl
getDescription, getName, getRestrictions, getUserData, isAbstract
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.feature.type.FeatureType
isIdentified
 
Methods inherited from interface org.opengis.feature.type.ComplexType
getBinding, getDescriptor, getDescriptor, getDescriptors, isInline
 
Methods inherited from interface org.opengis.feature.type.AttributeType
getSuper
 
Methods inherited from interface org.opengis.feature.type.PropertyType
getDescription, getName, getRestrictions, getUserData, isAbstract
 

Constructor Detail

ComplexFeatureTypeImpl

public ComplexFeatureTypeImpl(org.opengis.feature.type.Name name,
                              java.util.Collection<org.opengis.feature.type.PropertyDescriptor> schema,
                              org.opengis.feature.type.GeometryDescriptor defaultGeometry,
                              boolean isAbstract,
                              java.util.List<org.opengis.filter.Filter> restrictions,
                              org.opengis.feature.type.AttributeType superType,
                              org.opengis.util.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,
                              java.util.Collection<org.opengis.feature.type.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 java.util.Collection<org.opengis.feature.type.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-2010 Geotools. All Rights Reserved.