Mercurial > hg > Members > nobuyasu > Consensus
changeset 12:ef434ebd64ae
fix NodeModel.java
author | one |
---|---|
date | Tue, 02 Oct 2012 10:38:08 +0900 |
parents | 6aa0452a7f9f |
children | 9b677755cb93 |
files | app/controllers/Claim.java app/models/NodeModel.java |
diffstat | 2 files changed, 7 insertions(+), 36 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controllers/Claim.java Tue Oct 02 10:36:39 2012 +0900 +++ b/app/controllers/Claim.java Tue Oct 02 10:38:08 2012 +0900 @@ -6,6 +6,12 @@ + public static void crateClaim() { + + + + } +
--- a/app/models/NodeModel.java Tue Oct 02 10:36:39 2012 +0900 +++ b/app/models/NodeModel.java Tue Oct 02 10:38:08 2012 +0900 @@ -41,15 +41,6 @@ this.vertex = vertex; this.id = vertex.getId(); } - -/* - public JSONObject getProperties() throws JSONException { - for (String key: vertex.getPropertyKeys() ) { - properties.put(key, vertex.getProperty(key)); - } - return properties; - } -*/ public void setId(Object id) { this.id = id; @@ -63,31 +54,5 @@ return this.vertex; } -/* - public void setJsonProperty(String key, Object value) throws JSONException { - properties.put(key, value); - } - - public void setPropetiesFromJson(JSONObject jobj) throws JSONException { - for (Iterator<String> iter=jobj.keys(); iter.hasNext();) { - String key = iter.next(); - this.setJsonProperty(key, jobj.get(key)); - } - } - - public void writeProperties() throws JSONException { - for (Iterator<String> iter=properties.keys(); iter.hasNext(); ) { - String key = iter.next(); - vertex.setProperty(key, properties.get(key)); - } - } - - public JSONObject getNodeJson() throws JSONException { - JSONObject jobj = new JSONObject(); - jobj.put("id",this.id); - jobj.put("data", this.properties); - return jobj; - } -*/ - + }