Examples of BinaryComparisonOpTypeInfo


Examples of org.geomajas.sld.filter.BinaryComparisonOpTypeInfo

    return stringBuilder.toString();
  }

  private String toComparison(ComparisonOpsTypeInfo coOps, FeatureInfo featureInfo) {
    if (coOps instanceof BinaryComparisonOpTypeInfo) {
      BinaryComparisonOpTypeInfo binary = (BinaryComparisonOpTypeInfo) coOps;
      String propertyName = binary.getExpressionList().get(0).getValue();
      String propertyValue = binary.getExpressionList().get(1).getValue();
      PrimitiveType type = PrimitiveType.STRING;
      for (AttributeInfo attributeInfo : featureInfo.getAttributes()) {
        if (attributeInfo.getName().equals(propertyName)) {
          if (attributeInfo instanceof PrimitiveAttributeInfo) {
            type = ((PrimitiveAttributeInfo) attributeInfo).getType();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.