1 17 18 19 package javax.servlet.jsp.tagext; 20 21 54 55 public abstract class TagExtraInfo { 56 57 61 public TagExtraInfo() { 62 } 63 64 73 public VariableInfo [] getVariableInfo(TagData data) { 74 return ZERO_VARIABLE_INFO; 75 } 76 77 87 88 public boolean isValid(TagData data) { 89 return true; 90 } 91 92 109 public ValidationMessage [] validate( TagData data ) { 110 ValidationMessage [] result = null; 111 112 if( !isValid( data ) ) { 113 result = new ValidationMessage [] { 114 new ValidationMessage ( data.getId(), "isValid() == false" ) }; 115 } 116 117 return result; 118 } 119 120 125 public final void setTagInfo(TagInfo tagInfo) { 126 this.tagInfo = tagInfo; 127 } 128 129 134 public final TagInfo getTagInfo() { 135 return tagInfo; 136 } 137 138 private TagInfo tagInfo; 140 141 private static final VariableInfo [] ZERO_VARIABLE_INFO = { }; 143 } 144 145 | Popular Tags |