public class GeotoolsFunctionExpressionBuilder extends Object implements ArgumentBuilder
| Constructor and Description |
|---|
GeotoolsFunctionExpressionBuilder(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttribute(String value) |
protected void |
addLiteralArg(Date date) |
protected void |
addLiteralArg(Object value) |
protected void |
addLiteralWktArg(String wkt) |
ArgumentBuilder |
attributeArg(String name)
Continues building the
ArgumentBuilder based on an attribute |
ArgumentBuilder |
boolArg(boolean arg)
Continues building the
ArgumentBuilder based on a boolean value |
protected org.opengis.filter.Filter |
build() |
protected org.opengis.filter.Filter |
build(Object arg) |
protected org.opengis.filter.Filter |
build(Object arg0,
Object arg1) |
ArgumentBuilder |
bytesArg(byte[] bytes)
Continues building the
ArgumentBuilder based on byte value |
ArgumentBuilder |
dateArg(Date date)
Continues building the
ArgumentBuilder based on a Date |
ArgumentBuilder |
dateRangeArg(Date begin,
Date end)
Continues building the
ArgumentBuilder based on a range defined by two Date
instances |
EqualityExpressionBuilder |
equalTo()
Currently only propertyIsEqualTo(Function,val) is supported so instead supporting
ExpressionBuilder is() the api just has equalTo
|
protected ddf.catalog.filter.proxy.builder.Operator |
getOperator() |
protected Object |
getSecondaryValue() |
protected Object |
getValue() |
ArgumentBuilder |
numberArg(double arg)
Continues building the
ArgumentBuilder based on a double |
ArgumentBuilder |
numberArg(float arg)
Continues building the
ArgumentBuilder based on a float |
ArgumentBuilder |
numberArg(int arg)
Continues building the
ArgumentBuilder based on a int |
ArgumentBuilder |
numberArg(long arg)
Continues building the
ArgumentBuilder based on a long |
ArgumentBuilder |
numberArg(short arg)
Continues building the
ArgumentBuilder based on a short |
ArgumentBuilder |
objArg(Object obj)
Continues building the
ArgumentBuilder based on a object value |
protected void |
setArguments(List<org.opengis.filter.expression.Expression> arguments) |
protected void |
setAttribute(String attribute) |
protected void |
setFunctionName(String functionName) |
protected void |
setOperator(ddf.catalog.filter.proxy.builder.Operator operator) |
protected void |
setSecondaryValue(Object arg1) |
protected void |
setValue(Object value) |
ArgumentBuilder |
textArg(String text)
Continues building the
ArgumentBuilder based on a text value |
org.opengis.geometry.Geometry |
toGeometry(String wkt) |
ArgumentBuilder |
wktArg(String wkt)
Continues building the
ArgumentBuilder based on a WKT shape |
public GeotoolsFunctionExpressionBuilder(String name)
public ArgumentBuilder numberArg(float arg)
ArgumentBuilderArgumentBuilder based on a floatnumberArg in interface ArgumentBuilderarg - - float argumentArgumentBuilderpublic ArgumentBuilder numberArg(double arg)
ArgumentBuilderArgumentBuilder based on a doublenumberArg in interface ArgumentBuilderarg - - double argumentArgumentBuilderpublic ArgumentBuilder numberArg(int arg)
ArgumentBuilderArgumentBuilder based on a intnumberArg in interface ArgumentBuilderarg - - int argumentArgumentBuilderpublic ArgumentBuilder numberArg(short arg)
ArgumentBuilderArgumentBuilder based on a shortnumberArg in interface ArgumentBuilderarg - - short argumentArgumentBuilderpublic ArgumentBuilder numberArg(long arg)
ArgumentBuilderArgumentBuilder based on a longnumberArg in interface ArgumentBuilderarg - - long argumentArgumentBuilderpublic ArgumentBuilder wktArg(String wkt)
ArgumentBuilderArgumentBuilder based on a WKT shapewktArg in interface ArgumentBuilderwkt - - WKT-defined shape (2D)ArgumentBuilderpublic ArgumentBuilder dateArg(Date date)
ArgumentBuilderArgumentBuilder based on a DatedateArg in interface ArgumentBuilderdate - - DateArgumentBuilderpublic ArgumentBuilder dateRangeArg(Date begin, Date end)
ArgumentBuilderArgumentBuilder based on a range defined by two Date
instancesdateRangeArg in interface ArgumentBuilderbegin - - Date defining beginning of the rangeend - - Date defining end of the rangeArgumentBuilderpublic ArgumentBuilder boolArg(boolean arg)
ArgumentBuilderArgumentBuilder based on a boolean valueboolArg in interface ArgumentBuilderarg - - boolean argumentArgumentBuilderpublic ArgumentBuilder bytesArg(byte[] bytes)
ArgumentBuilderArgumentBuilder based on byte valuebytesArg in interface ArgumentBuilderbytes - byte arrayArgumentBuilderpublic ArgumentBuilder textArg(String text)
ArgumentBuilderArgumentBuilder based on a text valuetextArg in interface ArgumentBuildertext - - String argument to ArgumentBuilder onArgumentBuilderpublic ArgumentBuilder objArg(Object obj)
ArgumentBuilderArgumentBuilder based on a object valueobjArg in interface ArgumentBuilderobj - - Object argument to ArgumentBuilder onArgumentBuilderpublic ArgumentBuilder attributeArg(String name)
ArgumentBuilderArgumentBuilder based on an attributeattributeArg in interface ArgumentBuildername - - String argument to ArgumentBuilder onArgumentBuilderprotected void addLiteralWktArg(String wkt)
protected void addLiteralArg(Date date)
protected void addLiteralArg(Object value)
protected void addAttribute(String value)
public EqualityExpressionBuilder equalTo()
ArgumentBuilderContinue building a Filter with the "equal to" operator ( PropertyIsEqualTo)
equalTo in interface ArgumentBuilderEqualityExpressionBuilder to continue building the Filterprotected org.opengis.filter.Filter build()
protected org.opengis.filter.Filter build(Object arg)
protected void setFunctionName(String functionName)
protected void setArguments(List<org.opengis.filter.expression.Expression> arguments)
protected void setAttribute(String attribute)
attribute - the attribute to setprotected ddf.catalog.filter.proxy.builder.Operator getOperator()
protected void setOperator(ddf.catalog.filter.proxy.builder.Operator operator)
operator - the operator to setprotected Object getSecondaryValue()
protected void setSecondaryValue(Object arg1)
protected Object getValue()
protected void setValue(Object value)
value - the value to setpublic org.opengis.geometry.Geometry toGeometry(String wkt)
This work is licensed under a Creative Commons Attribution 4.0 International License.