Search in sources :

Example 1 with IsLessThenImpl

use of org.geotools.filter.IsLessThenImpl in project sldeditor by robward-scisys.

the class IsLessThan method createFilter.

/**
 * Creates the filter.
 *
 * @param parameterList the parameter list
 * @return the filter
 */
@Override
public Filter createFilter(List<Expression> parameterList) {
    IsLessThenImpl filter = null;
    if ((parameterList == null) || (parameterList.size() < 2) || (parameterList.size() > 3)) {
        filter = new IsLessThanExtended();
    } else {
        LiteralExpressionImpl matchCase = (LiteralExpressionImpl) parameterList.get(2);
        filter = new IsLessThanExtended(parameterList.get(0), parameterList.get(1), (Boolean) matchCase.getValue());
    }
    return filter;
}
Also used : IsLessThenImpl(org.geotools.filter.IsLessThenImpl) LiteralExpressionImpl(org.geotools.filter.LiteralExpressionImpl)

Aggregations

IsLessThenImpl (org.geotools.filter.IsLessThenImpl)1 LiteralExpressionImpl (org.geotools.filter.LiteralExpressionImpl)1