org.geotools.data.wfs.feature
Class LenientBuilder

Object
  extended by LenientBuilder

public class LenientBuilder
extends Object

A build that can be used as a replacement for SimpleFeatureBuilder in order to avoid validation.

The normal SimpleFeatureBuilder performs validation (rather than leaving that up to the factory implementation).

Author:
Jody Garnett

Constructor Summary
LenientBuilder(SimpleFeatureType schmea)
           
 
Method Summary
 void addAll(Object[] values)
           
static SimpleFeature build(SimpleFeatureType ft, Object[] atts, String fid)
           
 SimpleFeature buildFeature(String fid)
           
static SimpleFeature copy(SimpleFeature f)
           
 void reset()
           
 void setFeatureFactory(FeatureFactory featureFactory)
          You can inject another Factory; this builder will still not do validation
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LenientBuilder

public LenientBuilder(SimpleFeatureType schmea)
Method Detail

build

public static SimpleFeature build(SimpleFeatureType ft,
                                  Object[] atts,
                                  String fid)

setFeatureFactory

public void setFeatureFactory(FeatureFactory featureFactory)
You can inject another Factory; this builder will still not do validation


addAll

public void addAll(Object[] values)

buildFeature

public SimpleFeature buildFeature(String fid)

reset

public void reset()

copy

public static SimpleFeature copy(SimpleFeature f)


Copyright © 1996-2014 Geotools. All Rights Reserved.