Lines Matching defs:multi
29 private AttributeListImpl multi = new AttributeListImpl();
33 multi.addAttribute("foo", "string", "abc");
34 multi.addAttribute("bar", "string", "xyz");
35 multi.addAttribute("answer", "int", "42");
40 assertEquals(3, multi.getLength());
49 ai = new AttributeListImpl(multi);
70 attrs.setAttributeList(multi);
71 assertEquals(multi.getLength(), attrs.getLength());
73 for (int i = 0; i < multi.getLength(); i++) {
74 assertEquals(multi.getName(i), attrs.getName(i));
75 assertEquals(multi.getType(i), attrs.getType(i));
76 assertEquals(multi.getValue(i), attrs.getValue(i));
91 multi.addAttribute("doe", "boolean", "false");
93 assertEquals("doe", multi.getName(3));
94 assertEquals("boolean", multi.getType(3));
95 assertEquals("false", multi.getValue(3));
98 multi.addAttribute("doe", "boolean", "false");
100 assertEquals("doe", multi.getName(4));
101 assertEquals("boolean", multi.getType(4));
102 assertEquals("false", multi.getValue(4));
105 multi.addAttribute(null, null, null);
106 assertEquals(null, multi.getName(5));
107 assertEquals(null, multi.getType(5));
108 assertEquals(null, multi.getValue(5));
113 multi.removeAttribute("foo");
114 assertEquals("bar", multi.getName(0));
115 assertEquals("string", multi.getType(0));
116 assertEquals("xyz", multi.getValue(0));
119 multi.removeAttribute("john");
120 assertEquals(2, multi.getLength());
123 multi.removeAttribute(null);
124 assertEquals(2, multi.getLength());
128 assertEquals(3, multi.getLength());
129 multi.clear();
130 assertEquals(0, multi.getLength());
137 ai = new AttributeListImpl(multi);
148 assertEquals("foo", multi.getName(0));
149 assertEquals("bar", multi.getName(1));
150 assertEquals("answer", multi.getName(2));
153 assertEquals(null, multi.getName(-1));
154 assertEquals(null, multi.getName(3));
159 assertEquals("string", multi.getType(0));
160 assertEquals("string", multi.getType(1));
161 assertEquals("int", multi.getType(2));
164 assertEquals(null, multi.getType(-1));
165 assertEquals(null, multi.getType(3));
170 assertEquals("abc", multi.getValue(0));
171 assertEquals("xyz", multi.getValue(1));
172 assertEquals("42", multi.getValue(2));
175 assertEquals(null, multi.getValue(-1));
176 assertEquals(null, multi.getValue(5));
181 assertEquals("string", multi.getType("foo"));
182 assertEquals("string", multi.getType("bar"));
183 assertEquals("int", multi.getType("answer"));
186 assertEquals(null, multi.getType("john"));
189 assertEquals(null, multi.getType(null));
194 assertEquals("abc", multi.getValue("foo"));
195 assertEquals("xyz", multi.getValue("bar"));
196 assertEquals("42", multi.getValue("answer"));
199 assertEquals(null, multi.getValue("john"));
202 assertEquals(null, multi.getValue(null));