Package org.geotools.gml2.simple
Class FeatureCollectionEncoderDelegate
Object
FeatureCollectionEncoderDelegate
- All Implemented Interfaces:
EncoderDelegate
- Direct Known Subclasses:
GML2FeatureCollectionEncoderDelegate,GML32FeatureCollectionEncoderDelegate,GML3FeatureCollectionEncoderDelegate
Base class for feature collection optimized GML encoder delegates
- Author:
- Justin Deoliveira, OpenGeo, Andrea Aime, GeoSolutions
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFeatureCollectionEncoderDelegate(SimpleFeatureCollection features, Encoder encoder, GMLDelegate gml) -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(ContentHandler handler) Encodes content to an output stream.protected AttributesgetPropertyAttributes(QualifiedName name, FeatureType featureType, AttributeDescriptor attribute, Object value) Allows subclasses to generate a list of attributes for the property being encoded.
-
Field Details
-
encodeGeometryIds
protected boolean encodeGeometryIds
-
-
Constructor Details
-
FeatureCollectionEncoderDelegate
protected FeatureCollectionEncoderDelegate(SimpleFeatureCollection features, Encoder encoder, GMLDelegate gml)
-
-
Method Details
-
encode
Description copied from interface:EncoderDelegateEncodes content to an output stream.- Specified by:
encodein interfaceEncoderDelegate- Throws:
Exception
-
getPropertyAttributes
protected Attributes getPropertyAttributes(QualifiedName name, FeatureType featureType, AttributeDescriptor attribute, Object value) Allows subclasses to generate a list of attributes for the property being encoded. The default implementation just returns null- Parameters:
attribute- The attribute being encodedvalue- The attribute value- Returns:
- A Attributes, or null if no attributes are desired
-