public abstract class TagExtraInfo
extends java.lang.Object
<tag>
<name>foo</name>
<tagclass>com.caucho.tags.FooTag</tagclass>
<teiclass>com.caucho.tags.FooTagInfo</teiclass>
</tag>
Constructor and Description |
---|
TagExtraInfo()
Implementing classes must implement a zero-arg constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public TagExtraInfo()
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)