61626364656667
* @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()); }
* @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()); }
270271272273274275276277278279280
case BOOLEAN: value = parseBoolean(val); break; case TEXT: // do nothing value = new TextValue(val); break; } } catch (ParseException pe) { value = Value.getNullValueFromValueType(type); }
135136137138139140141
* 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); }
99100101102103104105106107
} if (valueType.equals(ValueType.NUMBER)) { return new NumberValue(Double.parseDouble(value.toString())); } if (valueType.equals(ValueType.TEXT)) { return new TextValue(value.toString()); } return null; }