use of org.geotools.filter.IsLessThenOrEqualToImpl in project sldeditor by robward-scisys.
the class IsLessThanEqualTo method createFilter.
/**
* Creates the filter.
*
* @param parameterList the parameter list
* @return the filter
*/
@Override
public Filter createFilter(List<Expression> parameterList) {
IsLessThenOrEqualToImpl filter = null;
if ((parameterList == null) || (parameterList.size() < 2) || (parameterList.size() > 3)) {
filter = new IsLessThanOrEqualToExtended();
} else {
LiteralExpressionImpl matchCase = (LiteralExpressionImpl) parameterList.get(2);
filter = new IsLessThanOrEqualToExtended(parameterList.get(0), parameterList.get(1), (Boolean) matchCase.getValue());
}
return filter;
}
Aggregations