javax.servlet.jsp.tagext
public class TagInfo extends Object
Field Summary | |
---|---|
static String | BODY_CONTENT_EMPTY
Static constant for getBodyContent() when it is empty. |
static String | BODY_CONTENT_JSP
Static constant for getBodyContent() when it is JSP. |
static String | BODY_CONTENT_SCRIPTLESS
Static constant for getBodyContent() when it is scriptless.
|
static String | BODY_CONTENT_TAG_DEPENDENT
Static constant for getBodyContent() when it is Tag dependent. |
Constructor Summary | |
---|---|
TagInfo(String tagName, String tagClassName, String bodycontent, String infoString, TagLibraryInfo taglib, TagExtraInfo tagExtraInfo, TagAttributeInfo[] attributeInfo)
Constructor for TagInfo from data in the JSP 1.1 format for TLD.
| |
TagInfo(String tagName, String tagClassName, String bodycontent, String infoString, TagLibraryInfo taglib, TagExtraInfo tagExtraInfo, TagAttributeInfo[] attributeInfo, String displayName, String smallIcon, String largeIcon, TagVariableInfo[] tvi)
Constructor for TagInfo from data in the JSP 1.2 format for TLD.
| |
TagInfo(String tagName, String tagClassName, String bodycontent, String infoString, TagLibraryInfo taglib, TagExtraInfo tagExtraInfo, TagAttributeInfo[] attributeInfo, String displayName, String smallIcon, String largeIcon, TagVariableInfo[] tvi, boolean dynamicAttributes)
Constructor for TagInfo from data in the JSP 2.0 format for TLD.
|
Method Summary | |
---|---|
TagAttributeInfo[] | getAttributes()
Attribute information (in the TLD) on this tag.
|
String | getBodyContent()
The bodycontent information for this tag.
|
String | getDisplayName()
Get the displayName.
|
String | getInfoString()
The information string for the tag.
|
String | getLargeIcon()
Get the path to the large icon.
|
String | getSmallIcon()
Get the path to the small icon.
|
String | getTagClassName()
Name of the class that provides the handler for this tag.
|
TagExtraInfo | getTagExtraInfo()
The instance (if any) for extra tag information.
|
TagLibraryInfo | getTagLibrary()
The instance of TabLibraryInfo we belong to.
|
String | getTagName()
The name of the Tag.
|
TagVariableInfo[] | getTagVariableInfos()
Get TagVariableInfo objects associated with this TagInfo.
|
VariableInfo[] | getVariableInfo(TagData data)
Information on the scripting objects created by this tag at runtime.
|
boolean | hasDynamicAttributes()
Get dynamicAttributes associated with this TagInfo.
|
boolean | isValid(TagData data)
Translation-time validation of the attributes.
|
void | setTagExtraInfo(TagExtraInfo tei)
Set the instance for extra tag information.
|
void | setTagLibrary(TagLibraryInfo tl)
Set the TagLibraryInfo property.
|
ValidationMessage[] | validate(TagData data)
Translation-time validation of the attributes.
|
Since: 2.0
Parameters: tagName The name of this tag tagClassName The name of the tag handler class bodycontent Information on the body content of these tags infoString The (optional) string information for this tag taglib The instance of the tag library that contains us. tagExtraInfo The instance providing extra Tag info. May be null attributeInfo An array of AttributeInfo data from descriptor. May be null;
Parameters: tagName The name of this tag tagClassName The name of the tag handler class bodycontent Information on the body content of these tags infoString The (optional) string information for this tag taglib The instance of the tag library that contains us. tagExtraInfo The instance providing extra Tag info. May be null attributeInfo An array of AttributeInfo data from descriptor. May be null; displayName A short name to be displayed by tools smallIcon Path to a small icon to be displayed by tools largeIcon Path to a large icon to be displayed by tools tvi An array of a TagVariableInfo (or null)
Parameters: tagName The name of this tag tagClassName The name of the tag handler class bodycontent Information on the body content of these tags infoString The (optional) string information for this tag taglib The instance of the tag library that contains us. tagExtraInfo The instance providing extra Tag info. May be null attributeInfo An array of AttributeInfo data from descriptor. May be null; displayName A short name to be displayed by tools smallIcon Path to a small icon to be displayed by tools largeIcon Path to a large icon to be displayed by tools tvi An array of a TagVariableInfo (or null) dynamicAttributes True if supports dynamic attributes
Since: 2.0
Returns: The array of TagAttributeInfo for this tag, or a zero-length array if the tag has no attributes.
Returns: the body content string.
Returns: A short name to be displayed by tools, or null if not defined
Returns: the info string, or null if not defined
Returns: Path to a large icon to be displayed by tools, or null if not defined
Returns: Path to a small icon to be displayed by tools, or null if not defined
Returns: The name of the tag handler class.
Returns: The TagExtraInfo instance, if any.
Returns: the tag library instance we belong to
Returns: The (short) name of the tag.
Returns: Array of TagVariableInfo objects corresponding to variables declared by this tag, or a zero length array if no variables have been declared
Parameters: data TagData describing this action.
Returns: if a TagExtraInfo object is associated with this TagInfo, the result of getTagExtraInfo().getVariableInfo( data ), otherwise null.
Returns: True if tag handler supports dynamic attributes
Since: 2.0
Parameters: data The translation-time TagData instance.
Returns: Whether the data is valid.
Parameters: tei the TagExtraInfo instance
Parameters: tl the TagLibraryInfo to assign
Parameters: data The translation-time TagData instance.
Returns: A null object, or zero length array if no errors, an array of ValidationMessages otherwise.
Since: 2.0