1 package org.sapia.util.xml.idefix.test; 2 3 import java.util.*; 4 5 16 public class CollectionObject { 17 18 public static final Object VALUE_ONE = "One"; 19 public static final Object VALUE_TWO = 20 new SimpleObject("element", "Two", "java.lang.String"); 21 public static final Object VALUE_THREE = 22 new ComplexObject(new SimpleObject("element", "Three.One", "java.lang.String"), 23 new SimpleObject("element", "Three.Two", "java.lang.String")); 24 25 public CollectionObject() { 26 } 27 28 public Vector getEmptyVector() { 29 return new Vector(); 30 } 31 32 public List getList() { 33 ArrayList aList = new ArrayList(); 34 aList.add(VALUE_ONE); 35 aList.add(null); 36 aList.add(VALUE_TWO); 37 aList.add(null); 38 aList.add(VALUE_THREE); 39 aList.add(null); 40 return aList; 41 } 42 43 public Iterator getIterator() { 44 return getList().iterator(); 45 } 46 } 47 | Popular Tags |