org.opengis.filter.expression.NilExpression Java Examples
The following examples show how to use
org.opengis.filter.expression.NilExpression.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AttributeSelection.java From sldeditor with GNU General Public License v3.0 | 6 votes |
/** * Populate. * * @param expression the expression */ public void populate(Expression expression) { if (expression != null) { populateAttributeComboxBox(expression); if ((expression instanceof NilExpression) || (expression instanceof ConstantExpression) || (expression instanceof LiteralExpressionImpl)) { valuePanel.populateExpression(expression); } else if (expression instanceof AttributeExpressionImpl) { setAttribute(expression); } else { expressionPanel.populateExpression(expression); } } }
Example #2
Source File: AttributeSelection.java From sldeditor with GNU General Public License v3.0 | 6 votes |
/** * Populate. * * @param expression the expression */ public void populateAttributeComboxBox(Expression expression) { String panelName; // Clear out any old values expressionPanel.populateExpression(null); dataSourceAttributePanel.setAttribute(null); if (expression == null) { panelName = ValueSubPanel.getPanelName(); } else if (expression instanceof NilExpression) { panelName = ValueSubPanel.getPanelName(); } else if (expression instanceof ConstantExpression) { panelName = ValueSubPanel.getPanelName(); } else if (expression instanceof LiteralExpressionImpl) { panelName = ValueSubPanel.getPanelName(); } else if (expression instanceof AttributeExpressionImpl) { panelName = DataSourceAttributePanel.getPanelName(); } else { panelName = ExpressionSubPanel.getPanelName(); } oldValueObj = panelName; attributeChooserComboBox.setSelectedItem(panelName); }
Example #3
Source File: FieldConfigBase.java From sldeditor with GNU General Public License v3.0 | 5 votes |
/** * Populate. * * @param expression the expression */ public void populate(Expression expression) { if (attributeSelectionPanel != null) { attributeSelectionPanel.populateAttributeComboxBox(expression); } if (expression == null) { expressionType = ExpressionTypeEnum.E_VALUE; revertToDefaultValue(); valueUpdated(); } else { if (expression instanceof LiteralExpressionImpl) { populateLiteralExpression(expression); } else if (expression instanceof ConstantExpression) { populateConstantExpression(expression); } else if (expression instanceof NilExpression) { populateNilExpression(); } else if (expression instanceof ProcessFunction) { populateProcessFunction(expression); } else if (expression instanceof AttributeExpressionImpl) { populateAttributeExpression(expression); } else if ((expression instanceof FunctionExpressionImpl) || (expression instanceof BinaryExpression)) { expressionType = ExpressionTypeEnum.E_EXPRESSION; if (attributeSelectionPanel != null) { attributeSelectionPanel.populate(expression); } setCachedExpression(expression); } else { expressionType = ExpressionTypeEnum.E_EXPRESSION; } } setValueFieldState(); }
Example #4
Source File: FilterToElastic.java From elasticgeo with GNU General Public License v3.0 | 4 votes |
public Object visit(NilExpression expression, Object extraData) { field = null; return extraData; }
Example #5
Source File: ElasticFilterTest.java From elasticgeo with GNU General Public License v3.0 | 4 votes |
@Test public void testNilFilter() { builder.field = "field"; builder.visit((NilExpression) NilExpression.NIL, null); assertNull(builder.field); }
Example #6
Source File: ExtractGeometryFilterVisitor.java From geowave with Apache License 2.0 | 4 votes |
@Override public Object visit(final NilExpression expression, final Object data) { return new ExtractGeometryFilterVisitorResult(infinity(), null); }
Example #7
Source File: ExtractTimeFilterVisitor.java From geowave with Apache License 2.0 | 4 votes |
@Override public Object visit(final NilExpression expression, final Object data) { return new TemporalConstraints(); }