Search in sources :

Example 11 with FilterNameParameter

use of com.sldeditor.filter.v2.function.FilterNameParameter in project sldeditor by robward-scisys.

the class IsNotEqualTo method getFilterConfiguration.

/**
 * Gets the filter configuration.
 *
 * @return the filter configuration
 */
@Override
public FilterName getFilterConfiguration() {
    FilterName filterName = new FilterName("PropertyIsNotEqualTo", Boolean.class);
    filterName.addParameter(new FilterNameParameter("property", ExpressionTypeEnum.PROPERTY, Object.class));
    filterName.addParameter(new FilterNameParameter("expression", ExpressionTypeEnum.EXPRESSION, Object.class));
    filterName.addParameter(new FilterNameParameter("matchCase", ExpressionTypeEnum.LITERAL, Boolean.class));
    return filterName;
}
Also used : FilterName(com.sldeditor.filter.v2.function.FilterName) FilterNameParameter(com.sldeditor.filter.v2.function.FilterNameParameter)

Example 12 with FilterNameParameter

use of com.sldeditor.filter.v2.function.FilterNameParameter in project sldeditor by robward-scisys.

the class EndedBy method getFilterConfiguration.

/**
 * Gets the filter configuration.
 *
 * @return the filter configuration
 */
@Override
public FilterName getFilterConfiguration() {
    FilterName filterName = new FilterName("EndedBy", Boolean.class);
    filterName.addParameter(new FilterNameParameter("property", ExpressionTypeEnum.PROPERTY, Date.class));
    filterName.addParameter(new FilterNameParameter("datetime", ExpressionTypeEnum.LITERAL, Date.class));
    return filterName;
}
Also used : FilterName(com.sldeditor.filter.v2.function.FilterName) Date(java.util.Date) FilterNameParameter(com.sldeditor.filter.v2.function.FilterNameParameter)

Example 13 with FilterNameParameter

use of com.sldeditor.filter.v2.function.FilterNameParameter in project sldeditor by robward-scisys.

the class TEquals method getFilterConfiguration.

/**
 * Gets the filter configuration.
 *
 * @return the filter configuration
 */
@Override
public FilterName getFilterConfiguration() {
    FilterName filterName = new FilterName("TEquals", Boolean.class);
    filterName.addParameter(new FilterNameParameter("expression1", ExpressionTypeEnum.PROPERTY, Date.class));
    filterName.addParameter(new FilterNameParameter("expression2", ExpressionTypeEnum.LITERAL, Date.class));
    return filterName;
}
Also used : FilterName(com.sldeditor.filter.v2.function.FilterName) Date(java.util.Date) FilterNameParameter(com.sldeditor.filter.v2.function.FilterNameParameter)

Example 14 with FilterNameParameter

use of com.sldeditor.filter.v2.function.FilterNameParameter in project sldeditor by robward-scisys.

the class RenderTransformValueFactoryTest method testGetValue.

/**
 * Test method for {@link
 * com.sldeditor.rendertransformation.types.RenderTransformValueFactory#getValue(java.lang.Class)}.
 */
@Test
void testGetValue() {
    List<FilterConfigInterface> filterList = FilterManager.getInstance().getFilterConfigList();
    for (FilterConfigInterface filter : filterList) {
        FilterName filterName = filter.getFilterConfiguration();
        System.out.println(filterName.getFilterName());
        for (FilterNameParameter param : filterName.getParameterList()) {
            System.out.println(String.format("  %s / %s", param.getName(), param.getDataType()));
            assertNotNull(RenderTransformValueFactory.getInstance().getValue(param.getDataType()));
        }
        System.out.println("  Return type : " + filterName.getReturnType());
        assertNotNull(RenderTransformValueFactory.getInstance().getValue(filterName.getReturnType()));
    }
}
Also used : FilterConfigInterface(com.sldeditor.filter.v2.function.FilterConfigInterface) FilterName(com.sldeditor.filter.v2.function.FilterName) FilterNameParameter(com.sldeditor.filter.v2.function.FilterNameParameter) Test(org.junit.jupiter.api.Test)

Example 15 with FilterNameParameter

use of com.sldeditor.filter.v2.function.FilterNameParameter in project sldeditor by robward-scisys.

the class Beyond method getFilterConfiguration.

/**
 * Gets the filter configuration.
 *
 * @return the filter configuration
 */
@Override
public FilterName getFilterConfiguration() {
    FilterName filterName = new FilterName("Beyond", Boolean.class);
    filterName.addParameter(new FilterNameParameter("property", ExpressionTypeEnum.PROPERTY, Number.class));
    filterName.addParameter(new FilterNameParameter("expression", ExpressionTypeEnum.LITERAL, Number.class));
    return filterName;
}
Also used : FilterName(com.sldeditor.filter.v2.function.FilterName) FilterNameParameter(com.sldeditor.filter.v2.function.FilterNameParameter)

Aggregations

FilterName (com.sldeditor.filter.v2.function.FilterName)40 FilterNameParameter (com.sldeditor.filter.v2.function.FilterNameParameter)40 Date (java.util.Date)13 Geometry (org.locationtech.jts.geom.Geometry)10 Filter (org.opengis.filter.Filter)3 FilterConfigInterface (com.sldeditor.filter.v2.function.FilterConfigInterface)2 Test (org.junit.jupiter.api.Test)2 BoundingBox (org.opengis.geometry.BoundingBox)1