+ isEqual + "; in:" + expAttr.getPropertyName() + "; out:" + this.attPath);
protected Object getValues( boolean isMultiValued, Expression expression, Object sourceFeatureInput) { if (isMultiValued && sourceFeatureInput instanceof FeatureImpl && expression instanceof AttributeExpressionImpl) { // RA: Feature Chaining // complex features can have multiple nodes of the same attribute.. and if they are used // as input to an app-schema data access to be nested inside another feature type of a // different XML type, it has to be mapped like this: // <AttributeMapping> // <targetAttribute> // gsml:composition // </targetAttribute> // <sourceExpression> // <inputAttribute>mo:composition</inputAttribute> // <linkElement>gsml:CompositionPart</linkElement> // <linkField>gml:name</linkField> // </sourceExpression> // <isMultiple>true</isMultiple> // </AttributeMapping> // As there can be multiple nodes of mo:composition in this case, we need to retrieve // all of them AttributeExpressionImpl attribExpression = ((AttributeExpressionImpl) expression); String xpath = attribExpression.getPropertyName(); ComplexAttribute sourceFeature = (ComplexAttribute) sourceFeatureInput; StepList xpathSteps = XPath.steps(sourceFeature.getDescriptor(), xpath, namespaces); return getProperties(sourceFeature, xpathSteps); } return expression.evaluate(sourceFeatureInput); }
String attribute = impl.getPropertyName(); String value = likeFilter.getLiteral(); if ("location".equalsIgnoreCase(attribute)) {
/** * This method calls {@link #getPropertyName()}. * * @deprecated use {@link #getPropertyName()} */ public final String getAttributePath() { return getPropertyName(); }
/** * This method calls {@link #getPropertyName()}. * * @deprecated use {@link #getPropertyName()} */ public final String getAttributePath() { return getPropertyName(); }
/** * Extract property attribute. * * @param attributeType the attribute type * @param foundList the found list * @param attribute the attribute */ private void extractPropertyAttribute( Class<?> attributeType, List<String> foundList, AttributeExpressionImpl attribute) { String attributeName = attribute.getPropertyName(); // Determine if attribute is a geometry if ((GeometryTypeMapping.getGeometryType(attributeType) != GeometryTypeEnum.UNKNOWN) || (attributeType == Geometry.class)) { if (!geometryFieldList.contains(attributeName)) { geometryFieldList.add(attributeName); } } else { if (!fieldList.containsKey(attributeName) && (attributeName != null)) { DataSourceAttributeData field = new DataSourceAttributeData(attributeName, attributeType, null); processedFieldList.add(field); fieldList.put(attributeName, field); foundList.add(attributeName); } } }
/** * Sets the attribute. * * @param expression the new attribute */ public void setAttribute(Expression expression) { String propertyName = null; if (expression instanceof PropertyExistsFunction) { Expression e = ((PropertyExistsFunction) expression).getParameters().get(0); Object value = ((LiteralExpressionImpl) e).getValue(); propertyName = ((AttributeExpressionImpl) value).getPropertyName(); } else if (expression instanceof AttributeExpressionImpl) { propertyName = ((AttributeExpressionImpl) expression).getPropertyName(); } else if (expression instanceof LiteralExpressionImpl) { propertyName = AttributeUtils.extract( (String) ((LiteralExpressionImpl) expression).getValue()); } if (propertyName != null) { oldValueObj = propertyName; attributeComboBox.setSelectedItem(propertyName); } else { oldValueObj = propertyName; attributeComboBox.setSelectedIndex(-1); } }
/** * Populate expression. * * @param objValue the obj value */ /* * (non-Javadoc) * * @see com.sldeditor.ui.detail.config.FieldConfigBase#populateExpression(java.lang.Object) */ @Override public void populateExpression(Object objValue) { String propertyName = null; if (objValue instanceof PropertyExistsFunction) { Expression e = ((PropertyExistsFunction) objValue).getParameters().get(0); propertyName = e.toString(); } else if (objValue instanceof AttributeExpressionImpl) { propertyName = ((AttributeExpressionImpl) objValue).getPropertyName(); } else if (objValue instanceof LiteralExpressionImpl) { propertyName = AttributeUtils.extract((String) ((LiteralExpressionImpl) objValue).getValue()); } populateField(propertyName); }
protected Object getValues(boolean isMultiValued, Expression expression, Object sourceFeatureInput) { if (isMultiValued && sourceFeatureInput instanceof FeatureImpl && expression instanceof AttributeExpressionImpl) { // RA: Feature Chaining // complex features can have multiple nodes of the same attribute.. and if they are used // as input to an app-schema data access to be nested inside another feature type of a // different XML type, it has to be mapped like this: // <AttributeMapping> // <targetAttribute> // gsml:composition // </targetAttribute> // <sourceExpression> // <inputAttribute>mo:composition</inputAttribute> // <linkElement>gsml:CompositionPart</linkElement> // <linkField>gml:name</linkField> // </sourceExpression> // <isMultiple>true</isMultiple> // </AttributeMapping> // As there can be multiple nodes of mo:composition in this case, we need to retrieve // all of them AttributeExpressionImpl attribExpression = ((AttributeExpressionImpl) expression); String xpath = attribExpression.getPropertyName(); ComplexAttribute sourceFeature = (ComplexAttribute) sourceFeatureInput; StepList xpathSteps = XPath.steps(sourceFeature.getDescriptor(), xpath, namespaces); return getProperties(sourceFeature, xpathSteps); } return expression.evaluate(sourceFeatureInput); }
String.format( "<ogc:PropertyName>%s</ogc:PropertyName>", attributeExpression.getPropertyName()); } else { ConsoleManager.getInstance()