Package org.yaac.shared.egql

Examples of org.yaac.shared.egql.ResultCell


    return "ListPropertyInfo [payload=" + payload + "]";
  }

  @Override
  public ResultCell populateResultCell(ResultCellFactory factory) {
    ResultCell cell = super.populateResultCell(factory);
    cell.setType(PropertyType.LIST);
    cell.setParent(null);
    cell.setPayload(null);
    cell.setChildren(new ArrayList<ResultCell>(payload.size()));
    for (PropertyInfo child : payload) {
      cell.getChildren().add(child.populateResultCell(factory));
    }
    return cell;
  }
View Full Code Here


    }
  }

  @Override
  public ResultCell populateResultCell(ResultCellFactory factory) {
    ResultCell cell = super.populateResultCell(factory);
    cell.setType(PropertyType.NULL);
    cell.setParent(null);
    cell.setChildren(null);
    cell.setPayload(null);
    return cell;
  }
View Full Code Here

    return "StringPropertyInfo [payload=" + payload + "]";
  }

  @Override
  public ResultCell populateResultCell(ResultCellFactory factory) {
    ResultCell cell = super.populateResultCell(factory);
    cell.setType(PropertyType.STRING);
    cell.setParent(null);
    cell.setChildren(null);
    cell.setPayload(Arrays.asList(payload));
    return cell;
  }
View Full Code Here

   *
   * @param factory
   * @return
   */
  public ResultCell populateResultCell(ResultCellFactory factory) {
    ResultCell cell = factory.create();
    cell.setTitle(this.title);
    cell.setWarnings(this.warnings);
    return cell;
  }
View Full Code Here

     */
    public static PropertyInfo fromResultCell(ResultCell resultCell) {
      PropertyType type = resultCell.getType();
      List<String> params = resultCell.getPayload();
      List<ResultCell> children = resultCell.getChildren();
      ResultCell parent = resultCell.getParent();
     
      PropertyInfo resultInfo;
     
      switch (type) {
      case BOOL:
View Full Code Here

    return "GeoPtPropertyInfo [latitude=" + latitude + ", longitude=" + longitude + "]";
  }

  @Override
  public ResultCell populateResultCell(ResultCellFactory factory) {
    ResultCell cell = super.populateResultCell(factory);
    cell.setType(PropertyType.GEOPT);
    cell.setParent(null);
    cell.setChildren(null);
    cell.setPayload(Arrays.asList(latitude.toString(), longitude.toString()));
    return cell;
  }
View Full Code Here

    return "EmailPropertyInfo [payload=" + payload + "]";
  }

  @Override
  public ResultCell populateResultCell(ResultCellFactory factory) {
    ResultCell cell = super.populateResultCell(factory);
    cell.setType(PropertyType.EMAIL);
    cell.setParent(null);
    cell.setChildren(null);
    cell.setPayload(Arrays.asList(payload));
    return cell;
  }
View Full Code Here

    return "DoublePropertyInfo [payload=" + payload + "]";
  }
 
  @Override
  public ResultCell populateResultCell(ResultCellFactory factory) {
    ResultCell cell = super.populateResultCell(factory);
    cell.setType(PropertyType.DOUBLE);
    cell.setParent(null);
    cell.setChildren(null);
    cell.setPayload(Arrays.asList(payload.toString()));
    return cell;
  }
View Full Code Here

TOP

Related Classes of org.yaac.shared.egql.ResultCell

Copyright © 2018 www.massapicom. 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.