aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/com/xagasoft/gats/GatsDictionary.java65
-rw-r--r--java/com/xagasoft/gats/GatsList.java6
2 files changed, 70 insertions, 1 deletions
diff --git a/java/com/xagasoft/gats/GatsDictionary.java b/java/com/xagasoft/gats/GatsDictionary.java
index 9f09ac0..cf6d390 100644
--- a/java/com/xagasoft/gats/GatsDictionary.java
+++ b/java/com/xagasoft/gats/GatsDictionary.java
@@ -2,8 +2,11 @@ package com.xagasoft.gats;
2 2
3import java.io.InputStream; 3import java.io.InputStream;
4import java.io.OutputStream; 4import java.io.OutputStream;
5import java.util.Collection;
6import java.util.Map;
7import java.util.Set;
5 8
6public class GatsDictionary extends GatsObject 9public class GatsDictionary extends GatsObject implements Map<String,GatsObject>
7{ 10{
8 public int getType() 11 public int getType()
9 { 12 {
@@ -17,5 +20,65 @@ public class GatsDictionary extends GatsObject
17 public void write( OutputStream os ) throws java.io.IOException 20 public void write( OutputStream os ) throws java.io.IOException
18 { 21 {
19 } 22 }
23
24 public void clear() {
25 // TODO Auto-generated method stub
26
27 }
28
29 public boolean containsKey(Object arg0) {
30 // TODO Auto-generated method stub
31 return false;
32 }
33
34 public boolean containsValue(Object arg0) {
35 // TODO Auto-generated method stub
36 return false;
37 }
38
39 public Set<java.util.Map.Entry<String, GatsObject>> entrySet() {
40 // TODO Auto-generated method stub
41 return null;
42 }
43
44 public GatsObject get(Object arg0) {
45 // TODO Auto-generated method stub
46 return null;
47 }
48
49 public boolean isEmpty() {
50 // TODO Auto-generated method stub
51 return false;
52 }
53
54 public Set<String> keySet() {
55 // TODO Auto-generated method stub
56 return null;
57 }
58
59 public GatsObject put(String arg0, GatsObject arg1) {
60 // TODO Auto-generated method stub
61 return null;
62 }
63
64 public void putAll(Map<? extends String, ? extends GatsObject> arg0) {
65 // TODO Auto-generated method stub
66
67 }
68
69 public GatsObject remove(Object arg0) {
70 // TODO Auto-generated method stub
71 return null;
72 }
73
74 public int size() {
75 // TODO Auto-generated method stub
76 return 0;
77 }
78
79 public Collection<GatsObject> values() {
80 // TODO Auto-generated method stub
81 return null;
82 }
20}; 83};
21 84
diff --git a/java/com/xagasoft/gats/GatsList.java b/java/com/xagasoft/gats/GatsList.java
index 7f04db6..35b2a4c 100644
--- a/java/com/xagasoft/gats/GatsList.java
+++ b/java/com/xagasoft/gats/GatsList.java
@@ -3,6 +3,7 @@ package com.xagasoft.gats;
3import java.io.InputStream; 3import java.io.InputStream;
4import java.io.OutputStream; 4import java.io.OutputStream;
5 5
6import java.util.Arrays;
6import java.util.Collection; 7import java.util.Collection;
7import java.util.Iterator; 8import java.util.Iterator;
8import java.util.List; 9import java.util.List;
@@ -48,6 +49,11 @@ public class GatsList extends GatsObject implements List<GatsObject>
48 os.write( (int)'e' ); 49 os.write( (int)'e' );
49 } 50 }
50 51
52 public String toString()
53 {
54 return lValue.toString();
55 }
56
51 public boolean add( GatsObject arg0 ) 57 public boolean add( GatsObject arg0 )
52 { 58 {
53 return lValue.add( arg0 ); 59 return lValue.add( arg0 );