|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagExtraInfo
public abstract class TagExtraInfo
Extra tag information for a custom tag. It performs a similar function to BeanInfo classes, but for tag libraries. The TagExtraInfo class will be called at JSP compile time to:
<tag>
<name>foo</name>
<tagclass>com.caucho.tags.FooTag</tagclass>
<teiclass>com.caucho.tags.FooTagInfo</teiclass>
</tag>
Constructor Summary | |
---|---|
TagExtraInfo()
Implementing classes must implement a zero-arg constructor. |
Method Summary | |
---|---|
TagInfo |
getTagInfo()
Gets the TLD tag info for this tag. |
VariableInfo[] |
getVariableInfo(TagData data)
Returns information needed to instantiate runtime variables. |
boolean |
isValid(TagData data)
Validates the tag, so errors can be caught at compile-time instead of waiting for runtime. |
void |
setTagInfo(TagInfo tagInfo)
Sets the TLD tag info for this tag. |
ValidationMessage[] |
validate(TagData data)
Validates the tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagExtraInfo()
Method Detail |
---|
public VariableInfo[] getVariableInfo(TagData data)
The default implementation returns null.
For example, if the tag initializes a nested integer named by
the foo attribute, getVariableInfo might return the following:
public VariableInfo []getVariableInfo(TagData data)
{
VariableInfo []info = new VariableInfo[1];
String foo = data.getAttribute("foo");
info[0] = new VariableInfo(foo, "int", true, VariableInfo.NESTED);
return info;
}
data
- The tag's static attributes and values.public boolean isValid(TagData data)
The default implementation returns true.
public final void setTagInfo(TagInfo tagInfo)
public final TagInfo getTagInfo()
public ValidationMessage[] validate(TagData data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |