Tabnine Logo
AttributeExpressionImpl.getPropertyName
Code IndexAdd Tabnine to your IDE (free)

How to use
getPropertyName
method
in
org.geotools.filter.AttributeExpressionImpl

Best Java code snippets using org.geotools.filter.AttributeExpressionImpl.getPropertyName (Showing top 10 results out of 315)

origin: geotools/geotools

+ isEqual
+ "; in:"
+ expAttr.getPropertyName()
+ "; out:"
+ this.attPath);
origin: geotools/geotools

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);
}
origin: geotools/geotools

String attribute = impl.getPropertyName();
String value = likeFilter.getLiteral();
if ("location".equalsIgnoreCase(attribute)) {
origin: org.geotools/gt-main

/**
 * This method calls {@link #getPropertyName()}.
 * 
 * @deprecated use {@link #getPropertyName()}
 */
public final String getAttributePath() {
   return getPropertyName();
}
origin: org.geotools/gt2-main

/**
 * This method calls {@link #getPropertyName()}.
 * 
 * @deprecated use {@link #getPropertyName()}
 */
public final String getAttributePath() {
   return getPropertyName();
}
origin: robward-scisys/sldeditor

/**
 * 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);
    }
  }
}
origin: robward-scisys/sldeditor

/**
 * 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);
  }
}
origin: robward-scisys/sldeditor

/**
 * 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);
}
origin: org.geotools/gt-app-schema

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);
}
origin: robward-scisys/sldeditor

      String.format(
          "<ogc:PropertyName>%s</ogc:PropertyName>",
          attributeExpression.getPropertyName());
} else {
  ConsoleManager.getInstance()
org.geotools.filterAttributeExpressionImplgetPropertyName

Javadoc

Gets the path to the attribute to be evaluated by this expression.

org.opengis.filter.expression.PropertyName#getPropertyName()

Popular methods of AttributeExpressionImpl

  • <init>
    Constructor with full attribute name.
  • evaluate
    Gets the value of this attribute from the passed feature.
  • setLenient
    Sets lenient property.
  • getAttributePath
    This method calls #getPropertyName().
  • getType
  • setAttributePath
    Constructor with minimum dataset for a valid expression.
  • setPropertyName
  • equals
    Compares this filter to the specified object. Returns true if the passed in object is the same as th
  • getLastPropertyAccessor
  • getPropertyAccessor
  • hashCode
    Override of hashCode method.
  • setLastPropertyAccessor
  • hashCode,
  • setLastPropertyAccessor,
  • tryAccessor

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JFileChooser (javax.swing)
  • JTextField (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now