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;
}
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;
}
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;
}
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()));
}
}
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;
}
Aggregations