A bit more modeling for the proto-graph.

Two spinners to prepare for more async UI indications.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@55 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-02-06 02:54:01 +00:00
parent 8701d504e6
commit bf79b24bf3
8 changed files with 48 additions and 33 deletions

View File

@ -7,6 +7,12 @@ import org.json.JSONWriter;
public class AnonymousNode extends Node {
private static final long serialVersionUID = -6956243664838720646L;
final public FreebaseType type;
public AnonymousNode(FreebaseType type) {
this.type = type;
}
@Override
public void write(JSONWriter writer, Properties options)

View File

@ -0,0 +1,32 @@
package com.metaweb.gridworks.protograph;
import java.util.Properties;
import org.json.JSONException;
import org.json.JSONWriter;
public class CellNode extends Node {
private static final long serialVersionUID = 5820786756175547307L;
final public int cellIndex;
final public boolean createUnlessRecon;
final public FreebaseType type;
public CellNode(
int cellIndex,
boolean createUnlessRecon,
FreebaseType type
) {
this.cellIndex = cellIndex;
this.createUnlessRecon = createUnlessRecon;
this.type = type;
}
@Override
public void write(JSONWriter writer, Properties options)
throws JSONException {
// TODO Auto-generated method stub
}
}

View File

@ -5,12 +5,12 @@ import java.util.Properties;
import org.json.JSONException;
import org.json.JSONWriter;
public class TopicNode extends Node {
public class ExistingTopicNode extends Node {
private static final long serialVersionUID = 8418548867745587387L;
final protected FreebaseTopic _topic;
public TopicNode(FreebaseTopic topic) {
public ExistingTopicNode(FreebaseTopic topic) {
_topic = topic;
}

View File

@ -11,22 +11,14 @@ import com.metaweb.gridworks.Jsonizable;
public class FreebaseTopic implements Serializable, Jsonizable {
private static final long serialVersionUID = -3427885694129112432L;
final protected String _id;
final protected String _name;
final public String id;
final public String name;
public FreebaseTopic(String id, String name) {
_id = id;
_name = name;
this.id = id;
this.name = name;
}
public String getID() {
return _id;
}
public String getName() {
return _name;
}
@Override
public void write(JSONWriter writer, Properties options)
throws JSONException {

View File

@ -2,9 +2,12 @@ package com.metaweb.gridworks.protograph;
public class FreebaseType extends FreebaseTopic {
private static final long serialVersionUID = -3070300264980791404L;
final public boolean compoundValueType;
public FreebaseType(String id, String name) {
public FreebaseType(String id, String name, boolean compoundValueType) {
super(id, name);
this.compoundValueType = compoundValueType;
}
}

View File

@ -1,18 +0,0 @@
package com.metaweb.gridworks.protograph;
import java.util.Properties;
import org.json.JSONException;
import org.json.JSONWriter;
public class NewNode extends Node {
private static final long serialVersionUID = 5820786756175547307L;
@Override
public void write(JSONWriter writer, Properties options)
throws JSONException {
// TODO Auto-generated method stub
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB