1 16 17 package org.apache.taglibs.standard.tei; 18 19 import javax.servlet.jsp.tagext.TagData ; 20 import javax.servlet.jsp.tagext.TagExtraInfo ; 21 22 28 public class XmlParseTEI extends TagExtraInfo { 29 30 final private static String VAR = "var"; 31 final private static String VAR_DOM = "varDom"; 32 final private static String SCOPE = "scope"; 33 final private static String SCOPE_DOM = "scopeDom"; 34 35 public boolean isValid(TagData us) { 36 if (Util.isSpecified(us, VAR) && Util.isSpecified(us, VAR_DOM)) 38 return false; 39 40 if (!(Util.isSpecified(us, VAR) || Util.isSpecified(us, VAR_DOM))) 42 return false; 43 44 if (Util.isSpecified(us, SCOPE) && !Util.isSpecified(us, VAR)) 46 return false; 47 if (Util.isSpecified(us, SCOPE_DOM) && !Util.isSpecified(us, VAR_DOM)) 48 return false; 49 50 return true; 51 } 52 53 } 54 | Popular Tags |