Examples of ifComparisonOps()


Examples of org.geomajas.sld.filter.FilterTypeInfo.ifComparisonOps()

  public void testRead() throws JiBXException {
    IBindingFactory bfact = BindingDirectory.getFactory(StyledLayerDescriptorInfo.class);
    IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
    Object object = uctx.unmarshalDocument(getClass().getResourceAsStream("samples/filter/property_is_equal.xml"), null);
    FilterTypeInfo filter = (FilterTypeInfo) object;
    Assert.assertTrue(filter.ifComparisonOps());
    Assert.assertTrue(filter.getComparisonOps() instanceof PropertyIsEqualToInfo);
    PropertyIsEqualToInfo p = (PropertyIsEqualToInfo) filter.getComparisonOps();
    Assert.assertEquals(2, p.getExpressionList().size());
    ExpressionInfo left = p.getExpressionList().get(0);
    ExpressionInfo right = p.getExpressionList().get(1);
View Full Code Here

Examples of org.geomajas.sld.filter.UnaryLogicOpTypeInfo.ifComparisonOps()

  }

  private String toLogic(LogicOpsTypeInfo logicOps, FeatureInfo featureInfo) {
    if (logicOps instanceof UnaryLogicOpTypeInfo) {
      UnaryLogicOpTypeInfo unary = (UnaryLogicOpTypeInfo) logicOps;
      if (unary.ifComparisonOps()) {
        return "NOT " + toComparison(unary.getComparisonOps(), featureInfo);
      } else if (unary.ifLogicOps()) {
        return "NOT " + toLogic(unary.getLogicOps(), featureInfo);
      } else if (unary.ifSpatialOps()) {
        return "NOT " + toSpatial(unary.getSpatialOps());
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.