KickJava   Java API By Example, From Geeks To Geeks.

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


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

21 public abstract class AbstractTypeTag implements ObjectCreationCallback {
22
23   private Object JavaDoc _value;
24
25   public void setValue(String JavaDoc value) {
26     _value = doProcessValue(value);
27   }
28
29   /**
30    * @see org.sapia.util.xml.confix.ObjectCreationCallback#onCreate()
31    */

32   public Object JavaDoc onCreate() throws ConfigurationException {
33     return _value;
34   }
35
36   protected abstract Object JavaDoc doProcessValue(String JavaDoc value);
37
38 }
39
Popular Tags