KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > gumby > tags > types > ListTag


1 package org.sapia.gumby.tags.types;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 import org.sapia.util.xml.confix.ConfigurationException;
7 import org.sapia.util.xml.confix.ObjectCreationCallback;
8 import org.sapia.util.xml.confix.ObjectHandlerIF;
9
10 /**
11  * @author Yanick Duchesne
12  *
13  * <dl>
14  * <dt><b>Copyright: </b>
15  * <dd>Copyright &#169; 2002-2005 <a HREF="http://www.sapia-oss.org">Sapia Open
16  * Source Software </a>. All Rights Reserved.</dd>
17  * </dt>
18  * <dt><b>License: </b>
19  * <dd>Read the license.txt file of the jar or visit the <a
20  * HREF="http://www.sapia-oss.org/license.html">license page </a> at the Sapia
21  * OSS web site</dd>
22  * </dt>
23  * </dl>
24  */

25 public class ListTag implements ObjectCreationCallback, ObjectHandlerIF {
26
27   private List JavaDoc _items = new ArrayList JavaDoc();
28
29   /**
30    * @see org.sapia.util.xml.confix.ObjectHandlerIF#handleObject(java.lang.String,
31    * java.lang.Object)
32    */

33   public void handleObject(String JavaDoc arg0, Object JavaDoc arg1)
34       throws ConfigurationException {
35     _items.add(arg1);
36   }
37
38   /**
39    * @see org.sapia.util.xml.confix.ObjectCreationCallback#onCreate()
40    */

41   public Object JavaDoc onCreate() throws ConfigurationException {
42     return _items;
43   }
44
45 }
46
Popular Tags