Class FeatureBuilder<FT extends FeatureType,​F extends Feature>

  • Type Parameters:
    FT - The kind of FeatureType whose feature the builder will build. Allows you to enforce a stricter specialist type; eg. SimpleFeatureType.
    F - The kind of Feature that the builder will build. Allows you to enforce a stricter specialist type; eg. SimpleFeature.
    Direct Known Subclasses:
    ComplexFeatureBuilder, SimpleFeatureBuilder

    public abstract class FeatureBuilder<FT extends FeatureType,​F extends Feature>
    extends Object
    This class provides some common functionality for builders and defines an abstraction for Feature builders' public interfaces.
    Author:
    Adam Brown (Curtin University of Technology)
    • Field Detail

      • featureType

        protected FT extends FeatureType featureType
        the feature type
    • Constructor Detail

      • FeatureBuilder

        protected FeatureBuilder​(FT featureType,
                                 FeatureFactory factory)
    • Method Detail

      • buildFeature

        public abstract F buildFeature​(String id)
      • getFeatureType

        public FT getFeatureType()
        Returns the feature type used by this builder as a feature template
      • createDefaultFeatureId

        public static String createDefaultFeatureId()
        Internal method for creating feature id's when none is specified.
      • createDefaultFeatureIdentifier

        public static FeatureIdImpl createDefaultFeatureIdentifier​(String suggestedId)
        Internal method for a temporary FeatureId that can be assigned a real value after a commit.
        Parameters:
        suggestedId - suggested id