![David Huynh](/assets/img/avatar_default.png)
git-svn-id: http://google-refine.googlecode.com/svn/trunk@7 7d457c2a-affb-35e4-300a-418c747d4874
26 lines
652 B
Java
26 lines
652 B
Java
package com.metaweb.gridlock.model;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Properties;
|
|
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
public class Column implements Serializable {
|
|
private static final long serialVersionUID = -1063342490951563563L;
|
|
|
|
public int cellIndex;
|
|
public String headerLabel;
|
|
public Class valueType;
|
|
|
|
public JSONObject getJSON(Properties options) throws JSONException {
|
|
JSONObject o = new JSONObject();
|
|
|
|
o.put("cellIndex", cellIndex);
|
|
o.put("headerLabel", headerLabel);
|
|
o.put("valueType", valueType == null ? null : valueType.getSimpleName());
|
|
|
|
return o;
|
|
}
|
|
}
|