Package org.geotools.gml2.simple
Class FeatureCollectionEncoderDelegate
- Object
-
- FeatureCollectionEncoderDelegate
-
- All Implemented Interfaces:
EncoderDelegate
- Direct Known Subclasses:
GML2FeatureCollectionEncoderDelegate
,GML32FeatureCollectionEncoderDelegate
,GML3FeatureCollectionEncoderDelegate
public abstract class FeatureCollectionEncoderDelegate extends Object implements EncoderDelegate
Base class for feature collection optimized GML encoder delegates- Author:
- Justin Deoliveira, OpenGeo, Andrea Aime, GeoSolutions
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
encodeGeometryIds
-
Constructor Summary
Constructors Modifier Constructor Description protected
FeatureCollectionEncoderDelegate(SimpleFeatureCollection features, Encoder encoder, GMLDelegate gml)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(ContentHandler handler)
Encodes content to an output stream.protected Attributes
getPropertyAttributes(QualifiedName name, FeatureType featureType, AttributeDescriptor attribute, Object value)
Allows subclasses to generate a list of attributes for the property being encoded.
-
-
-
Constructor Detail
-
FeatureCollectionEncoderDelegate
protected FeatureCollectionEncoderDelegate(SimpleFeatureCollection features, Encoder encoder, GMLDelegate gml)
-
-
Method Detail
-
encode
public void encode(ContentHandler handler) throws Exception
Description copied from interface:EncoderDelegate
Encodes content to an output stream.- Specified by:
encode
in 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
-
-