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 onCreate() throws ConfigurationException { 14 return super.create(); 15 } 16 17 public boolean isEqual() { 18 return !super.isEqual(); 19 } 20 21 public Object create(TemplateContextIF context, ObjectFactoryIF fac) throws Exception { 22 super.init(context, fac); 23 return this; 24 } 25 } 26 | Popular Tags |