diff options
Diffstat (limited to 'ddl/out/java/LambdaCube/PipelineSchema/JSON.java')
-rw-r--r-- | ddl/out/java/LambdaCube/PipelineSchema/JSON.java | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/ddl/out/java/LambdaCube/PipelineSchema/JSON.java b/ddl/out/java/LambdaCube/PipelineSchema/JSON.java index 346f719..1fec7e8 100644 --- a/ddl/out/java/LambdaCube/PipelineSchema/JSON.java +++ b/ddl/out/java/LambdaCube/PipelineSchema/JSON.java | |||
@@ -1,10 +1,11 @@ | |||
1 | // generated file, do not modify! | 1 | // generated file, do not modify! |
2 | // 2016-03-21T13:31:10.293368000000Z | 2 | // 2016-03-21T14:06:55.360355000000Z |
3 | 3 | ||
4 | package LambdaCube.PipelineSchema; | 4 | package LambdaCube.PipelineSchema; |
5 | 5 | ||
6 | import java.util.ArrayList; | 6 | import java.util.ArrayList; |
7 | import java.util.HashMap; | 7 | import java.util.HashMap; |
8 | import java.util.Iterator; | ||
8 | import org.json.*; | 9 | import org.json.*; |
9 | import RT.*; | 10 | import RT.*; |
10 | 11 | ||
@@ -27,36 +28,36 @@ public class JSON { | |||
27 | public static Object fromJSON(Type type, Object rawObj) throws JSONException, Exception { | 28 | public static Object fromJSON(Type type, Object rawObj) throws JSONException, Exception { |
28 | switch (type) { | 29 | switch (type) { |
29 | case String: return (String)rawObj; | 30 | case String: return (String)rawObj; |
30 | /* | ||
31 | case Map_String_InputType: { | 31 | case Map_String_InputType: { |
32 | var map = new HashMap<String, InputType> (); | 32 | JSONObject obj = (JSONObject)rawObj; |
33 | foreach(var i in (JSONObject)rawObj) { | 33 | HashMap<String, InputType> map = new HashMap<String, InputType> (); |
34 | map.Add( (String)fromJSON(Type.String,i.Key) | 34 | Iterator<String> keyIt = obj.keys(); |
35 | , (InputType)fromJSON(Type.InputType,i.Value)); | 35 | while(keyIt.hasNext()) { |
36 | String key = keyIt.next(); | ||
37 | map.put(key, (InputType)fromJSON(Type.InputType,obj.get(key))); | ||
36 | } | 38 | } |
37 | return map; | 39 | return map; |
38 | } | 40 | } |
39 | */ | ||
40 | /* | ||
41 | case Map_String_ObjectArraySchema: { | 41 | case Map_String_ObjectArraySchema: { |
42 | var map = new HashMap<String, ObjectArraySchema> (); | 42 | JSONObject obj = (JSONObject)rawObj; |
43 | foreach(var i in (JSONObject)rawObj) { | 43 | HashMap<String, ObjectArraySchema> map = new HashMap<String, ObjectArraySchema> (); |
44 | map.Add( (String)fromJSON(Type.String,i.Key) | 44 | Iterator<String> keyIt = obj.keys(); |
45 | , (ObjectArraySchema)fromJSON(Type.ObjectArraySchema,i.Value)); | 45 | while(keyIt.hasNext()) { |
46 | String key = keyIt.next(); | ||
47 | map.put(key, (ObjectArraySchema)fromJSON(Type.ObjectArraySchema,obj.get(key))); | ||
46 | } | 48 | } |
47 | return map; | 49 | return map; |
48 | } | 50 | } |
49 | */ | ||
50 | /* | ||
51 | case Map_String_StreamType: { | 51 | case Map_String_StreamType: { |
52 | var map = new HashMap<String, StreamType> (); | 52 | JSONObject obj = (JSONObject)rawObj; |
53 | foreach(var i in (JSONObject)rawObj) { | 53 | HashMap<String, StreamType> map = new HashMap<String, StreamType> (); |
54 | map.Add( (String)fromJSON(Type.String,i.Key) | 54 | Iterator<String> keyIt = obj.keys(); |
55 | , (StreamType)fromJSON(Type.StreamType,i.Value)); | 55 | while(keyIt.hasNext()) { |
56 | String key = keyIt.next(); | ||
57 | map.put(key, (StreamType)fromJSON(Type.StreamType,obj.get(key))); | ||
56 | } | 58 | } |
57 | return map; | 59 | return map; |
58 | } | 60 | } |
59 | */ | ||
60 | 61 | ||
61 | case StreamType: { | 62 | case StreamType: { |
62 | JSONObject obj = (JSONObject)rawObj; | 63 | JSONObject obj = (JSONObject)rawObj; |