Search in sources :

Example 1 with IsNotEqualToImpl

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

the class IsNotEqualTo method createFilter.

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

Aggregations

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