org.geotools.filter
Class AndBuilder<P>

java.lang.Object
  extended by org.geotools.filter.AndBuilder<P>
All Implemented Interfaces:
Builder<org.opengis.filter.And>

public class AndBuilder<P>
extends java.lang.Object
implements Builder<org.opengis.filter.And>

FitlerBuilder acting as a simple wrapper around an Expression.


Field Summary
protected  org.opengis.filter.FilterFactory ff
           
protected  java.util.List<FilterBuilder> list
           
protected  P parent
           
 
Constructor Summary
AndBuilder()
           
AndBuilder(P parent)
           
 
Method Summary
 AndBuilder<P> and(org.opengis.filter.Filter filter)
           
 org.opengis.filter.And build()
          Build an And filter
 P end()
           
 AndBuilder<P> fid(java.util.List<java.lang.String> fids)
           
 AndBuilder<P> fid(java.lang.String fid)
           
 AndBuilder<P> reset()
          Configure the Builder to produce a default result.
 AndBuilder<P> reset(org.opengis.filter.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ff

protected org.opengis.filter.FilterFactory ff

parent

protected P parent

list

protected java.util.List<FilterBuilder> list
Constructor Detail

AndBuilder

public AndBuilder()

AndBuilder

public AndBuilder(P parent)
Method Detail

build

public org.opengis.filter.And build()
Build an And filter

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

fid

public AndBuilder<P> fid(java.lang.String fid)

and

public AndBuilder<P> and(org.opengis.filter.Filter filter)

fid

public AndBuilder<P> fid(java.util.List<java.lang.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<org.opengis.filter.And>
Returns:
Builder configured to produce a default result.

reset

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

Specified by:
reset in interface Builder<org.opengis.filter.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<org.opengis.filter.And>
Returns:
Builder configured to build null


Copyright © 1996-2010 Geotools. All Rights Reserved.