KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > regis > loader > UnlessTag


1 package org.sapia.regis.loader;
2
3 import org.sapia.util.text.TemplateContextIF;
4 import org.sapia.util.xml.confix.ConfigurationException;
5 import org.sapia.util.xml.confix.ObjectCreationCallback;
6 import org.sapia.util.xml.confix.ObjectFactoryIF;
7
8 public class UnlessTag extends Condition implements ObjectCreationCallback, TagFactory {
9   public UnlessTag() {
10     super("unless");
11   }
12
13   public Object JavaDoc onCreate() throws ConfigurationException {
14     return super.create();
15   }
16   
17   public boolean isEqual() {
18     return !super.isEqual();
19   }
20   
21   public Object JavaDoc create(TemplateContextIF context, ObjectFactoryIF fac) throws Exception JavaDoc {
22     super.init(context, fac);
23     return this;
24   }
25 }
26
Popular Tags