Package com.google.visualization.datasource.datatable.value

Examples of com.google.visualization.datasource.datatable.value.TextValue


   * @param values A list that contains one text value.
   *
   * @return An uppercase version of the input text value.
   */
  public Value evaluate(List<Value> values) {
    return new TextValue(((TextValue) values.get(0)).getValue().toUpperCase());
  }
View Full Code Here


   * @param values A list that contains one text value.
   *
   * @return A lower-case version of the input text value.
   */
  public Value evaluate(List<Value> values) {
    return new TextValue(((TextValue) values.get(0)).getValue().toLowerCase());
  }
View Full Code Here

        case BOOLEAN:
          value = parseBoolean(val);
          break;
        case TEXT:
          // do nothing
          value = new TextValue(val);
          break;
      }
    } catch (ParseException pe) {
      value = Value.getNullValueFromValueType(type);
    }
View Full Code Here

   * Constructs a new TableCell with a text value.
   *
   * @param value The inner text value of this cell.
   */
  public TableCell(String value) {
    this.value = new TextValue(value);
  }
View Full Code Here

    }
    if (valueType.equals(ValueType.NUMBER)) {
      return new NumberValue(Double.parseDouble(value.toString()));
    }
    if (valueType.equals(ValueType.TEXT)) {
      return new TextValue(value.toString());
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of com.google.visualization.datasource.datatable.value.TextValue

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.