KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > xml > nuts > optional > BinderDefault


1 package jfun.yan.xml.nuts.optional;
2
3 import jfun.yan.Binder;
4 import jfun.yan.xml.nut.Nut;
5 /**
6  * Represents the default case in the <typecase> tag.
7  * See {@link TypeCaseNut}.
8  * <p>
9  * @author Ben Yu
10  * Nov 9, 2005 11:57:47 PM
11  */

12 public class BinderDefault extends Nut {
13   private Binder binder;
14
15   public Binder getBinder() {
16     return binder;
17   }
18
19   public void setBinder(Binder binder) {
20     this.binder = binder;
21   }
22   public void eval(){
23     checkMandatory("binder", binder);
24   }
25 }
26
Popular Tags