|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.filter.expression.ExpressionBuilder
org.geotools.filter.expression.ChildExpressionBuilder<P>
P
- parent builderpublic class ChildExpressionBuilder<P extends Builder<?>>
Child expression builder; suitable for use collecting function parameters and binary expression arguments.
This builder is designed to be "chained" from a parent builder; you may return to the parent builder at any time by calling end().
Field Summary |
---|
Fields inherited from class org.geotools.filter.expression.ExpressionBuilder |
---|
delegate, ff, unset |
Constructor Summary | |
---|---|
ChildExpressionBuilder(P parent)
|
|
ChildExpressionBuilder(P parent,
org.opengis.filter.expression.Expression expr1)
|
Method Summary | |
---|---|
org.opengis.filter.expression.Expression |
build()
Build the parameter; adding it to the parent. |
P |
end()
Build the expression and return to the parent builder. |
P |
literal(java.lang.Object obj)
Inline literal value. |
P |
property(java.lang.String xpath)
Inline property name value. |
ChildExpressionBuilder<P> |
reset()
Configure the Builder to produce a default result. |
ChildExpressionBuilder<P> |
reset(org.opengis.filter.expression.Expression original)
Configure the Builder to produce a copy of the provided original. |
ChildExpressionBuilder<P> |
unset()
Configure the Builder to produce null . |
Methods inherited from class org.geotools.filter.expression.ExpressionBuilder |
---|
add, divide, function, function, isUnset, literal, multiply, property, subtract |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChildExpressionBuilder(P parent)
public ChildExpressionBuilder(P parent, org.opengis.filter.expression.Expression expr1)
Method Detail |
---|
public ChildExpressionBuilder<P> reset()
Builder
reset
in interface Builder<org.opengis.filter.expression.Expression>
reset
in class ExpressionBuilder
public ChildExpressionBuilder<P> reset(org.opengis.filter.expression.Expression original)
Builder
reset
in interface Builder<org.opengis.filter.expression.Expression>
reset
in class ExpressionBuilder
public ChildExpressionBuilder<P> unset()
Builder
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.
unset
in interface Builder<org.opengis.filter.expression.Expression>
unset
in class ExpressionBuilder
null
public org.opengis.filter.expression.Expression build()
When using this from another builder you may wish to override the this build() method as shown below:
final Expression array[] = ... ChildExpressionBuilder first = new ChildExpressionBuilder<?>(this) { public Expression build() { array[0] = super.build(); return array[0]; } }; }
build
in interface Builder<org.opengis.filter.expression.Expression>
build
in class ExpressionBuilder
public P end()
Example use:b.add().expr1().literal(1).end().expr2().literal(2).end().build();
_build()
public P literal(java.lang.Object obj)
Example:b.literal( 1 );
literal
in class ExpressionBuilder
obj
- Object to use as the resulting literalpublic P property(java.lang.String xpath)
Example:b.property("x");
property
in class ExpressionBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |