|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.filter.Expr
This is FilterFactory for a very interesting implementation of Filter / Expression.
Here is what Expr is all about:
This will make user of Java 5 type narrowing (so the FilterFactory methods will return subtypes of Expr).
Note: FilterExpr is considered a normal Expr in which the result is known to beboolean.
This method also implements the "chaining" concept you see in the collections lib. This allows you to chain together a series of method calls to build up your expression on a single line of java code.
From a modeling standpoint the chaining idea is incidental (it adds no expressive power), it is simply a convience to users. It is also the motivation for Expr being both an abstract class and Factory.
Constructor Summary | |
Expr()
|
Method Summary | |
org.opengis.filter.expression.Add |
add(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
org.opengis.filter.And |
and(org.opengis.filter.Filter f,
org.opengis.filter.Filter g)
|
org.opengis.filter.And |
and(java.util.List filters)
|
org.opengis.filter.spatial.BBOX |
bbox(java.lang.String propertyName,
double minx,
double miny,
double maxx,
double maxy,
java.lang.String srs)
Checks if the bounding box of the feature's geometry overlaps the specified bounding box. |
org.opengis.filter.PropertyIsBetween |
between(org.opengis.filter.expression.Expression expr,
org.opengis.filter.expression.Expression lower,
org.opengis.filter.expression.Expression upper)
|
org.opengis.filter.spatial.Beyond |
beyond(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry,
double distance,
java.lang.String units)
|
org.opengis.filter.spatial.Contains |
contains(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry)
|
org.opengis.filter.spatial.Crosses |
crosses(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry)
|
org.opengis.filter.spatial.Disjoint |
disjoint(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry)
|
org.opengis.filter.expression.Divide |
divide(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
org.opengis.filter.spatial.DWithin |
dwithin(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry,
double distance,
java.lang.String units)
|
org.opengis.filter.PropertyIsEqualTo |
equals(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
org.opengis.filter.spatial.Equals |
equals(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry)
|
org.opengis.filter.FeatureId |
featureId(java.util.Set ids)
|
org.opengis.filter.expression.Function |
function(java.lang.String name,
org.opengis.filter.expression.Expression arg1)
|
org.opengis.filter.expression.Function |
function(java.lang.String name,
org.opengis.filter.expression.Expression[] args)
|
org.opengis.filter.expression.Function |
function(java.lang.String name,
org.opengis.filter.expression.Expression arg1,
org.opengis.filter.expression.Expression arg2)
|
org.opengis.filter.expression.Function |
function(java.lang.String name,
org.opengis.filter.expression.Expression arg1,
org.opengis.filter.expression.Expression arg2,
org.opengis.filter.expression.Expression arg3)
|
org.opengis.filter.PropertyIsGreaterThan |
greater(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
org.opengis.filter.PropertyIsGreaterThanOrEqualTo |
greaterOrEqual(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
org.opengis.filter.spatial.Intersects |
intersects(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry)
|
org.opengis.filter.PropertyIsNull |
isNull(org.opengis.filter.expression.Expression expr)
XXX Java 5 type narrowing used to make generated class explicit for chaining |
org.opengis.filter.PropertyIsLessThan |
less(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
org.opengis.filter.PropertyIsLessThanOrEqualTo |
lessOrEqual(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
org.opengis.filter.PropertyIsLike |
like(org.opengis.filter.expression.Expression expr,
java.lang.String pattern)
|
org.opengis.filter.PropertyIsLike |
like(org.opengis.filter.expression.Expression expr,
java.lang.String pattern,
java.lang.String wildcard,
java.lang.String singleChar,
java.lang.String escape)
|
org.opengis.filter.expression.Literal |
literal(boolean b)
|
org.opengis.filter.expression.Literal |
literal(byte b)
|
org.opengis.filter.expression.Literal |
literal(char c)
|
org.opengis.filter.expression.Literal |
literal(double d)
|
org.opengis.filter.expression.Literal |
literal(float f)
|
org.opengis.filter.expression.Literal |
literal(int i)
|
org.opengis.filter.expression.Literal |
literal(long l)
|
org.opengis.filter.expression.Literal |
literal(java.lang.Object obj)
|
org.opengis.filter.expression.Literal |
literal(short s)
|
org.opengis.filter.expression.Multiply |
multiply(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
org.opengis.filter.Not |
not(org.opengis.filter.Filter filter)
Java 5 type narrowing used to advertise explicit implementation for chaining |
org.opengis.filter.Or |
or(org.opengis.filter.Filter f,
org.opengis.filter.Filter g)
|
org.opengis.filter.Or |
or(java.util.List filters)
|
org.opengis.filter.spatial.Overlaps |
overlaps(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry)
|
org.opengis.filter.expression.PropertyName |
property(java.lang.String name)
|
org.opengis.filter.expression.Subtract |
subtract(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
org.opengis.filter.spatial.Touches |
touches(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry)
|
org.opengis.filter.spatial.Within |
within(java.lang.String propertyName,
org.opengis.spatialschema.geometry.Geometry geometry)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.factory.Factory |
getImplementationHints |
Methods inherited from interface org.opengis.filter.FilterFactory |
sort |
Constructor Detail |
public Expr()
Method Detail |
public org.opengis.filter.And and(org.opengis.filter.Filter f, org.opengis.filter.Filter g)
and
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.And and(java.util.List filters)
and
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.Or or(org.opengis.filter.Filter f, org.opengis.filter.Filter g)
or
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.Or or(java.util.List filters)
or
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.Not not(org.opengis.filter.Filter filter)
not
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.FeatureId featureId(java.util.Set ids)
featureId
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.PropertyName property(java.lang.String name)
property
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.PropertyIsBetween between(org.opengis.filter.expression.Expression expr, org.opengis.filter.expression.Expression lower, org.opengis.filter.expression.Expression upper)
between
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.PropertyIsEqualTo equals(org.opengis.filter.expression.Expression expr1, org.opengis.filter.expression.Expression expr2)
equals
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.PropertyIsGreaterThan greater(org.opengis.filter.expression.Expression expr1, org.opengis.filter.expression.Expression expr2)
greater
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.PropertyIsGreaterThanOrEqualTo greaterOrEqual(org.opengis.filter.expression.Expression expr1, org.opengis.filter.expression.Expression expr2)
greaterOrEqual
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.PropertyIsLessThan less(org.opengis.filter.expression.Expression expr1, org.opengis.filter.expression.Expression expr2)
less
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.PropertyIsLessThanOrEqualTo lessOrEqual(org.opengis.filter.expression.Expression expr1, org.opengis.filter.expression.Expression expr2)
lessOrEqual
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.PropertyIsLike like(org.opengis.filter.expression.Expression expr, java.lang.String pattern)
like
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.PropertyIsLike like(org.opengis.filter.expression.Expression expr, java.lang.String pattern, java.lang.String wildcard, java.lang.String singleChar, java.lang.String escape)
like
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.PropertyIsNull isNull(org.opengis.filter.expression.Expression expr)
isNull
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.BBOX bbox(java.lang.String propertyName, double minx, double miny, double maxx, double maxy, java.lang.String srs)
Similar to:
geom().disjoint( geom( bbox )).not()
bbox
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.Beyond beyond(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry, double distance, java.lang.String units)
beyond
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.Contains contains(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry)
contains
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.Crosses crosses(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry)
crosses
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.Disjoint disjoint(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry)
disjoint
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.DWithin dwithin(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry, double distance, java.lang.String units)
dwithin
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.Equals equals(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry)
equals
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.Intersects intersects(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry)
intersects
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.Overlaps overlaps(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry)
overlaps
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.Touches touches(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry)
touches
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.spatial.Within within(java.lang.String propertyName, org.opengis.spatialschema.geometry.Geometry geometry)
within
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Add add(org.opengis.filter.expression.Expression expr1, org.opengis.filter.expression.Expression expr2)
add
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Divide divide(org.opengis.filter.expression.Expression expr1, org.opengis.filter.expression.Expression expr2)
divide
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Multiply multiply(org.opengis.filter.expression.Expression expr1, org.opengis.filter.expression.Expression expr2)
multiply
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Subtract subtract(org.opengis.filter.expression.Expression expr1, org.opengis.filter.expression.Expression expr2)
subtract
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Function function(java.lang.String name, org.opengis.filter.expression.Expression[] args)
function
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Function function(java.lang.String name, org.opengis.filter.expression.Expression arg1)
function
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Function function(java.lang.String name, org.opengis.filter.expression.Expression arg1, org.opengis.filter.expression.Expression arg2)
function
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Function function(java.lang.String name, org.opengis.filter.expression.Expression arg1, org.opengis.filter.expression.Expression arg2, org.opengis.filter.expression.Expression arg3)
function
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Literal literal(java.lang.Object obj)
literal
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Literal literal(byte b)
literal
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Literal literal(short s)
literal
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Literal literal(int i)
literal
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Literal literal(long l)
literal
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Literal literal(float f)
literal
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Literal literal(double d)
literal
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Literal literal(char c)
literal
in interface org.opengis.filter.FilterFactory
public org.opengis.filter.expression.Literal literal(boolean b)
literal
in interface org.opengis.filter.FilterFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |