Package org.geotools.data.complex.config
Class NonFeatureTypeProxy
- Object
-
- AttributeTypeProxy
-
- ComplexTypeProxy
-
- NonFeatureTypeProxy
-
- All Implemented Interfaces:
AttributeType
,ComplexType
,FeatureType
,PropertyType
public class NonFeatureTypeProxy extends ComplexTypeProxy implements FeatureType
This class represents the fake feature type needed for feature chaining for properties that are not features. When a non feature is mapped separately in app schema data access, it is regarded as a feature since it would have a feature source.- Author:
- Rini Angreani (CSIRO Earth Science and Resource Engineering)
-
-
Constructor Summary
Constructors Constructor Description NonFeatureTypeProxy(AttributeType type, FeatureTypeMapping mapping)
Sole constructorNonFeatureTypeProxy(AttributeType type, FeatureTypeMapping mapping, Collection<PropertyDescriptor> schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateReferenceSystem
getCoordinateReferenceSystem()
The coordinate reference system of the feature.PropertyDescriptor
getDescriptor(Name name)
Describe a single property by name.Collection<PropertyDescriptor>
getDescriptors()
The property descriptor which compose the complex type.GeometryDescriptor
getGeometryDescriptor()
Describe the default geometric attribute for this feature.AttributeType
getSubject()
Collection<PropertyDescriptor>
getTypeDescriptors()
Return only the schema descriptors-
Methods inherited from class ComplexTypeProxy
getBinding, getDescriptor, isInline
-
Methods inherited from class AttributeTypeProxy
equals, getDescription, getName, getOperations, getRestrictions, getSuper, getUserData, hashCode, isAbstract, isIdentified
-
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface AttributeType
getSuper
-
Methods inherited from interface ComplexType
getBinding, getDescriptor, isInline
-
Methods inherited from interface FeatureType
isIdentified
-
Methods inherited from interface PropertyType
equals, getDescription, getName, getRestrictions, getUserData, hashCode, isAbstract
-
-
-
-
Constructor Detail
-
NonFeatureTypeProxy
public NonFeatureTypeProxy(AttributeType type, FeatureTypeMapping mapping)
Sole constructor- Parameters:
type
- The underlying non feature type
-
NonFeatureTypeProxy
public NonFeatureTypeProxy(AttributeType type, FeatureTypeMapping mapping, Collection<PropertyDescriptor> schema)
-
-
Method Detail
-
getSubject
public AttributeType getSubject()
- Overrides:
getSubject
in classAttributeTypeProxy
- See Also:
AttributeTypeProxy.getSubject()
-
getDescriptor
public PropertyDescriptor getDescriptor(Name name)
Description copied from interface:ComplexType
Describe a single property by name.This method returns
null
if no such property is found.- Specified by:
getDescriptor
in interfaceComplexType
- Overrides:
getDescriptor
in classComplexTypeProxy
- Parameters:
name
- The name of the property to get.- Returns:
- The property matching the specified name, or
null
.
-
getDescriptors
public Collection<PropertyDescriptor> getDescriptors()
Description copied from interface:ComplexType
The property descriptor which compose the complex type.A complex type can be composed of attributes and associations which means this collection returns instances of
AttributeDescriptor
andAssociationDescriptor
.- Specified by:
getDescriptors
in interfaceComplexType
- Overrides:
getDescriptors
in classComplexTypeProxy
- Returns:
- Collection of descriptors representing the composition of the complex type.
-
getTypeDescriptors
public Collection<PropertyDescriptor> getTypeDescriptors()
Return only the schema descriptors
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
Description copied from interface:FeatureType
The coordinate reference system of the feature.This value is derived from the default geometry attribute:
((GeometryType)getDefaultGeometry().getType()).getCRS();
This method will return
null
in the case where no default geometric attribute is defined.- Specified by:
getCoordinateReferenceSystem
in interfaceFeatureType
- Returns:
- The coordinate referencing system, or
null
.
-
getGeometryDescriptor
public GeometryDescriptor getGeometryDescriptor()
Description copied from interface:FeatureType
Describe the default geometric attribute for this feature.This method returns
null
in the case where no such attribute exists.- Specified by:
getGeometryDescriptor
in interfaceFeatureType
- Returns:
- The descriptor of the default geometry attribute, or
null
.
-
-