diff --git a/main/src/com/google/refine/model/Cell.java b/main/src/com/google/refine/model/Cell.java index 47a349a39..3ff0bd38d 100644 --- a/main/src/com/google/refine/model/Cell.java +++ b/main/src/com/google/refine/model/Cell.java @@ -179,4 +179,8 @@ public class Cell implements HasFields, Jsonizable { return null; } } + + public String toString() { + return value.toString(); + } } diff --git a/main/src/com/google/refine/model/Row.java b/main/src/com/google/refine/model/Row.java index 438cf8704..f0583f18c 100644 --- a/main/src/com/google/refine/model/Row.java +++ b/main/src/com/google/refine/model/Row.java @@ -231,4 +231,13 @@ public class Row implements HasFields, Jsonizable { return (cells.size() > 0) ? new Row(cells, flagged, starred) : null; } + + public String toString() { + StringBuffer result = new StringBuffer(); + for (Cell cell : cells) { + result.append(cell.toString()); + result.append(","); + } + return result.toString(); + } }