public abstract class AbstractFilterBuilder extends Object
Builds Filter or Expression and their components (literal, functions, etc). It maintains the results of semantic actions in the stack used to build complex filters and expressions.
Warning: This component is not published. It is part of module implementation. Client module should not use this feature.
Modifier and Type | Field and Description |
---|---|
protected String |
cqlSource |
protected FilterFactory |
filterFactory |
Constructor and Description |
---|
AbstractFilterBuilder(String cqlSource,
FilterFactory filterFactory)
New instance of FilterBuilder
|
protected final FilterFactory filterFactory
protected final String cqlSource
public AbstractFilterBuilder(String cqlSource, FilterFactory filterFactory)
protected FilterFactory getFilterFactory()
protected final BuildResultStack getResultStack()
protected final String getStatement()
public void pushResult(Result result)
public Result peekResult()
public Filter getFilter() throws CQLException
CQLException
public Expression getExpression() throws CQLException
CQLException
public List<Filter> getFilterList() throws CQLException
CQLException
public BinaryExpression buildAddExpression() throws CQLException
CQLException
public BinaryExpression buildSubtractExression() throws CQLException
CQLException
public BinaryExpression buildMultiplyExpression() throws CQLException
CQLException
public BinaryExpression buildDivideExpression() throws CQLException
CQLException
public Filter buildAndFilter() throws CQLException
CQLException
public Filter buildOrFilter() throws CQLException
CQLException
public Filter buildNotFilter() throws CQLException
CQLException
public PropertyIsLike buildLikeFilter(boolean matchCase) throws CQLException
CQLException
public PropertyIsNull buildPropertyIsNull() throws CQLException
CQLException
public Not buildPorpertyNotIsNull() throws CQLException
CQLException
public PropertyIsBetween buildBetween() throws CQLException
CQLException
public Not buildNotBetween() throws CQLException
CQLException
public Not buildNotLikeFilter(boolean matchCase) throws CQLException
CQLException
public PropertyIsEqualTo buildPropertyExists() throws CQLException
CQLException
public Literal buildDateExpression(IToken token) throws CQLException
CQLException
public Literal buildDateTimeExpression(IToken token) throws CQLException
token
- with date timeCQLException
protected Literal asLiteralDate(String cqlDate) throws CQLException
CQLException
protected Literal asLiteralDateTime(String cqlDateTime) throws CQLException
cqlDateTime
- a string with the format yyyy-MM-ddTHH:mm:ss.s[(+|-)HH:mm]CQLException
public Literal buildTrueLiteral()
public Literal buildFalseLiteral()
protected String removeQuotes(String source)
public String buildIdentifier(int nodeIdentifier) throws CQLException
CQLException
public String buildIdentifierPart(IToken token)
public PropertyName buildSimpleAttribute() throws CQLException
CQLException
public PropertyName buildCompoundAttribute(int nodeSimpleAttr, String nodeAttrSeparator) throws CQLException
CQLException
public Literal buildDistanceUnit(IToken token) throws CQLException
CQLException
public Literal buildTolerance() throws CQLException
CQLException
public BinarySpatialOperator buildSpatialEqualFilter() throws CQLException
CQLException
public BinarySpatialOperator buildSpatialDisjointFilter() throws CQLException
CQLException
public BinarySpatialOperator buildSpatialIntersectsFilter() throws CQLException
CQLException
public PropertyIsEqualTo buildSpatialRelateFilter() throws CQLException
CQLException
public BinarySpatialOperator buildSpatialTouchesFilter() throws CQLException
CQLException
public BinarySpatialOperator buildSpatialCrossesFilter() throws CQLException
CQLException
public BinarySpatialOperator buildSpatialWithinFilter() throws CQLException
CQLException
public BinarySpatialOperator buildSpatialContainsFilter() throws CQLException
CQLException
public BinarySpatialOperator buildSpatialOverlapsFilter() throws CQLException
CQLException
public BBOX buildBBox() throws CQLException
CQLException
public BBOX buildBBoxWithCRS() throws CQLException
CQLException
public DistanceBufferOperator buildSpatialDWithinFilter() throws CQLException
CQLException
public DistanceBufferOperator buildSpatialBeyondFilter() throws CQLException
CQLException
public PeriodNode buildPeriodBetweenDates() throws CQLException
CQLException
public PeriodNode buildPeriodDurationAndDate() throws CQLException
CQLException
public PeriodNode buildPeriodDateAndDuration() throws CQLException
CQLException
public Literal buildDurationExpression(IToken token)
public And buildPropertyBetweenDates() throws CQLException
CQLException
public PropertyIsGreaterThanOrEqualTo buildPropertyIsGTEFirstDate() throws CQLException
CQLException
public PropertyIsGreaterThan buildPropertyIsGTLastDate() throws CQLException
CQLException
public PropertyIsLessThan buildPropertyIsLTFirsDate() throws CQLException
CQLException
public PropertyIsLessThanOrEqualTo buildPropertyIsLTELastDate() throws CQLException
CQLException
public PropertyIsEqualTo buildEquals() throws CQLException
CQLException
public PropertyIsGreaterThan buildGreater() throws CQLException
CQLException
public PropertyIsLessThan buildLess() throws CQLException
CQLException
public PropertyIsGreaterThanOrEqualTo buildGreaterOrEqual() throws CQLException
CQLException
public PropertyIsLessThanOrEqualTo buildLessOrEqual() throws CQLException
CQLException
public Literal buildGeometry(IToken geometry) throws CQLException
CQLException
protected String scanExpression(IToken initialToken)
protected String transformWKTGeometry(String wktGeom)
Then OGC require MULTIPOINT((1 2), (3 4)) but vividsolunion works without point "(" ans ")" MULTIPOINT(1 2, 3 4)
wktGeom
- ogc wkt geometrypublic Literal buildEnvelope(IToken token) throws CQLException
CQLException
public Function buildFunction(int functionNode) throws CQLException
functionNode
- symbol used to identify the function node in parser treeCQLException
public TEquals buildTEquals() throws CQLException
CQLException
public After buildAfterDate() throws CQLException
CQLException
public After buildAfterPeriod() throws CQLException
CQLException
public Before buildBeforeDate() throws CQLException
CQLException
public Before buildBeforePeriod() throws CQLException
CQLException
public During buildDuringPeriod() throws CQLException
CQLException
public Or buildDuringOrAfter() throws CQLException
CQLException
public Or buildBeforeOrDuring() throws CQLException
CQLException
Copyright © 1996–2023 Geotools. All rights reserved.