Package org.geotools.data.complex.config
Class NonFeatureTypeProxy
Object
AttributeTypeProxy
ComplexTypeProxy
NonFeatureTypeProxy
- All Implemented Interfaces:
AttributeType
,ComplexType
,FeatureType
,PropertyType
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
ConstructorsConstructorDescriptionNonFeatureTypeProxy
(AttributeType type, FeatureTypeMapping mapping) Sole constructorNonFeatureTypeProxy
(AttributeType type, FeatureTypeMapping mapping, Collection<PropertyDescriptor> schema) -
Method Summary
Modifier and TypeMethodDescriptionThe coordinate reference system of the feature.getDescriptor
(Name name) Describe a single property by name.The property descriptor which compose the complex type.Describe the default geometric attribute for this feature.Return only the schema descriptorsMethods 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 Details
-
NonFeatureTypeProxy
Sole constructor- Parameters:
type
- The underlying non feature type
-
NonFeatureTypeProxy
public NonFeatureTypeProxy(AttributeType type, FeatureTypeMapping mapping, Collection<PropertyDescriptor> schema)
-
-
Method Details
-
getSubject
- Overrides:
getSubject
in classAttributeTypeProxy
- See Also:
-
getDescriptor
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
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
Return only the schema descriptors -
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
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
.
-