1 16 17 package org.apache.taglibs.jndi; 18 19 import javax.servlet.jsp.tagext.*; 20 21 26 public class ForEachAttributeTEI extends TagExtraInfo { 27 28 29 public ForEachAttributeTEI() { 30 } 31 32 public VariableInfo[] getVariableInfo(TagData data) { 33 if (data.getId() != null) { 34 return new VariableInfo[] 35 { new VariableInfo(data.getId(), "java.lang.Object", true, 36 VariableInfo.NESTED)}; 37 } else { 38 return null; 39 } 40 } 41 42 public boolean isValid(TagData data) { 43 if (data.getId() == null) { 44 return false; 45 } 46 if ((data.getAttribute("object") == null) 47 && (data.getAttribute("ref") == null)) { 48 return false; 49 } 50 return true; 51 } 52 53 } 54 | Popular Tags |