org.geotools.filter
Class AndBuilder<P>

Object
  extended by AndBuilder<P>
All Implemented Interfaces:
Builder<And>

public class AndBuilder<P>
extends Object
implements Builder<And>

FitlerBuilder acting as a simple wrapper around an Expression.

Module:
modules/extension/brewer (gt-brewer.jar)

Field Summary
protected  FilterFactory ff
           
protected  List<FilterBuilder> list
           
protected  P parent
           
 
Constructor Summary
AndBuilder()
           
AndBuilder(P parent)
           
 
Method Summary
 AndBuilder<P> and(Filter filter)
           
 And build()
          Build an And filter
 P end()
           
 AndBuilder<P> fid(List<String> fids)
           
 AndBuilder<P> fid(String fid)
           
 AndBuilder<P> reset()
          Configure the Builder to produce a default result.
 AndBuilder<P> reset(And filter)
          Configure the Builder to produce a copy of the provided original.
 AndBuilder<P> unset()
          Configure the Builder to produce null.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ff

protected FilterFactory ff

parent

protected P parent

list

protected List<FilterBuilder> list
Constructor Detail

AndBuilder

public AndBuilder()

AndBuilder

public AndBuilder(P parent)
Method Detail

build

public And build()
Build an And filter

Specified by:
build in interface Builder<And>
Returns:
Created object may be null if unset()

fid

public AndBuilder<P> fid(String fid)

and

public AndBuilder<P> and(Filter filter)

fid

public AndBuilder<P> fid(List<String> fids)

end

public P end()

reset

public AndBuilder<P> reset()
Description copied from interface: Builder
Configure the Builder to produce a default result.

Specified by:
reset in interface Builder<And>
Returns:
Builder configured to produce a default result.

reset

public AndBuilder<P> reset(And filter)
Description copied from interface: Builder
Configure the Builder to produce a copy of the provided original.

Specified by:
reset in interface Builder<And>
Returns:
Builder configured to produce the provided original

unset

public AndBuilder<P> unset()
Description copied from interface: Builder
Configure the Builder to produce null.

This method allows a Builder to be used as a placeholder; in its unset state the build() method will produce null. If any of the builder methods are used the builder will produce a result.

Specified by:
unset in interface Builder<And>
Returns:
Builder configured to build null


Copyright © 1996-2010 Geotools. All Rights Reserved.