KickJava   Java API By Example, From Geeks To Geeks.

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


1 package jfun.yan.xml.nuts.optional;
2
3 import jfun.yan.Component;
4 import jfun.yan.xml.nuts.DelegatingNut;
5
6 /**
7  * The <default> sub-element in the <switch> tag.
8  * <p>
9  * @author Ben Yu
10  * Nov 11, 2005 3:43:30 PM
11  */

12 public class Default extends DelegatingNut {
13   public Component eval(){
14     return getMandatory();
15   }
16 }
17
Popular Tags