public class NonFeatureTypeProxy extends ComplexTypeProxy implements FeatureType
Constructor and Description |
---|
NonFeatureTypeProxy(AttributeType type,
FeatureTypeMapping mapping)
Sole constructor
|
NonFeatureTypeProxy(AttributeType type,
FeatureTypeMapping mapping,
Collection<PropertyDescriptor> schema) |
Modifier and Type | Method and 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
|
getBinding, getDescriptor, isInline
equals, getDescription, getName, getOperations, getRestrictions, getSuper, getUserData, hashCode, isAbstract, isIdentified
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isIdentified
getBinding, getDescriptor, isInline
getSuper
equals, getDescription, getName, getRestrictions, getUserData, hashCode, isAbstract
public NonFeatureTypeProxy(AttributeType type, FeatureTypeMapping mapping)
type
- The underlying non feature typepublic NonFeatureTypeProxy(AttributeType type, FeatureTypeMapping mapping, Collection<PropertyDescriptor> schema)
public AttributeType getSubject()
getSubject
in class AttributeTypeProxy
AttributeTypeProxy.getSubject()
public PropertyDescriptor getDescriptor(Name name)
ComplexType
This method returns null
if no such property is found.
getDescriptor
in interface ComplexType
getDescriptor
in class ComplexTypeProxy
name
- The name of the property to get.null
.public Collection<PropertyDescriptor> getDescriptors()
ComplexType
A complex type can be composed of attributes and associations which means this collection
returns instances of AttributeDescriptor
and AssociationDescriptor
.
getDescriptors
in interface ComplexType
getDescriptors
in class ComplexTypeProxy
public Collection<PropertyDescriptor> getTypeDescriptors()
public CoordinateReferenceSystem getCoordinateReferenceSystem()
FeatureType
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.
getCoordinateReferenceSystem
in interface FeatureType
null
.public GeometryDescriptor getGeometryDescriptor()
FeatureType
This method returns null
in the case where no such attribute exists.
getGeometryDescriptor
in interface FeatureType
null
.Copyright © 1996–2023 Geotools. All rights reserved.