Examples of ExpressionKind


Examples of org.apache.olingo.odata2.api.uri.expression.ExpressionKind

      writer.append("<h2>Orderby</h2>\n")
          .append(orderBy.getOrdersCount() == 1 ? "<ul" : "<ol").append(" class=\"expr\">\n");
      for (final OrderExpression order : orderBy.getOrders()) {
        writer.append("<li>");
        appendExpression(order.getExpression(), writer);
        final ExpressionKind kind = order.getExpression().getKind();
        if (kind == ExpressionKind.PROPERTY || kind == ExpressionKind.LITERAL) {
          writer.append("<br />");
        }
        writer.append("<span class=\"order\">")
            .append(order.getSortOrder().toString())
View Full Code Here

Examples of org.apache.olingo.odata2.api.uri.expression.ExpressionKind

      appendExpandSelect(expandSelectTree, writer);
    }
  }

  private void appendExpression(final CommonExpression expression, final Writer writer) throws IOException {
    final ExpressionKind kind = expression.getKind();
    writer.append("<span class=\"kind\">")
        .append(kind.toString())
        .append("</span> <span class=\"literal\">")
        .append(kind == ExpressionKind.MEMBER ? ((MemberExpression) expression).getProperty().getUriLiteral() :
            expression.getUriLiteral())
        .append("</span>, type <span class=\"type\">")
        .append(expression.getEdmType().toString())
View Full Code Here

Examples of org.apache.olingo.odata2.api.uri.expression.ExpressionKind

      writer.append("<h2>Orderby</h2>\n")
          .append(orderBy.getOrdersCount() == 1 ? "<ul" : "<ol").append(" class=\"expr\">\n");
      for (final OrderExpression order : orderBy.getOrders()) {
        writer.append("<li>");
        appendExpression(order.getExpression(), writer);
        final ExpressionKind kind = order.getExpression().getKind();
        if (kind == ExpressionKind.PROPERTY || kind == ExpressionKind.LITERAL) {
          writer.append("<br />");
        }
        writer.append("<span class=\"order\">")
            .append(order.getSortOrder().toString())
View Full Code Here

Examples of org.apache.olingo.odata2.api.uri.expression.ExpressionKind

      appendExpandSelect(expandSelectTree, writer);
    }
  }

  private void appendExpression(final CommonExpression expression, Writer writer) throws IOException {
    final ExpressionKind kind = expression.getKind();
    writer.append("<span class=\"kind\">")
        .append(kind.toString())
        .append("</span> <span class=\"literal\">")
        .append(kind == ExpressionKind.MEMBER ? ((MemberExpression) expression).getProperty().getUriLiteral() :
            expression.getUriLiteral())
        .append("</span>, type <span class=\"type\">")
        .append(expression.getEdmType().toString())
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.