Movatterモバイル変換


[0]ホーム

URL:


         


Class TagInfo

java.lang.Object  |  +--javax.servlet.jsp.tagext.TagInfo

public classTagInfo
extends java.lang.Object

Tag information for a tag in a Tag Library; This class is instantiated from the Tag Library Descriptor file (TLD) and is available only at translation time.


BODY_CONTENT_EMPTY
          static constant for getBodyContent() when it is empty
BODY_CONTENT_JSP
          static constant for getBodyContent() when it is JSP
BODY_CONTENT_TAG_DEPENDENT
          static constant for getBodyContent() when it is Tag dependent
 
TagInfo(java.lang.String tagName, java.lang.String tagClassName, java.lang.String bodycontent, java.lang.String infoString,TagLibraryInfo taglib,TagExtraInfo tagExtraInfo,TagAttributeInfo[] attributeInfo)
          Constructor for TagInfo from data in the JSP 1.1 format for TLD.
TagInfo(java.lang.String tagName, java.lang.String tagClassName, java.lang.String bodycontent, java.lang.String infoString,TagLibraryInfo taglib,TagExtraInfo tagExtraInfo,TagAttributeInfo[] attributeInfo, java.lang.String displayName, java.lang.String smallIcon, java.lang.String largeIcon,TagVariableInfo[] tvi)
          Constructor for TagInfo from data in the JSP 1.2 format for TLD.
 
getAttributes()
          Attribute information (in the TLD) on this tag.
getBodyContent()
          The bodycontent information for this tag.
getDisplayName()
          Get the displayName
getInfoString()
          The information string for the tag.
getLargeIcon()
          Get the path to the large icon
getSmallIcon()
          Get the path to the small icon
getTagClassName()
          Name of the class that provides the handler for this tag.
getTagExtraInfo()
          The instance (if any) for extra tag information
getTagLibrary()
          The instance of TabLibraryInfo we belong to.
getTagName()
          The name of the Tag.
getTagVariableInfos()
          Get TagVariableInfo objects associated with this TagInfo
getVariableInfo(TagData data)
          Information on the scripting objects created by this tag at runtime.
isValid(TagData data)
          Translation-time validation of the attributes.
setTagExtraInfo(TagExtraInfo tei)
          Set the instance for extra tag information
setTagLibrary(TagLibraryInfo tl)
          Set the TagLibraryInfo property.
toString()
          Stringify for debug purposes...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

BODY_CONTENT_JSP

public static final java.lang.StringBODY_CONTENT_JSP
static constant for getBodyContent() when it is JSP

BODY_CONTENT_TAG_DEPENDENT

public static final java.lang.StringBODY_CONTENT_TAG_DEPENDENT
static constant for getBodyContent() when it is Tag dependent

BODY_CONTENT_EMPTY

public static final java.lang.StringBODY_CONTENT_EMPTY
static constant for getBodyContent() when it is empty

TagInfo

publicTagInfo(java.lang.String tagName,               java.lang.String tagClassName,               java.lang.String bodycontent,               java.lang.String infoString,TagLibraryInfo taglib,TagExtraInfo tagExtraInfo,TagAttributeInfo[] attributeInfo)
Constructor for TagInfo from data in the JSP 1.1 format for TLD. This class is to be instantiated only from the TagLibrary code under request from some JSP code that is parsing a TLD (Tag Library Descriptor). Note that, since TagLibibraryInfo reflects both TLD information and taglib directive information, a TagInfo instance is dependent on a taglib directive. This is probably a design error, which may be fixed in the future.
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;

TagInfo

publicTagInfo(java.lang.String tagName,               java.lang.String tagClassName,               java.lang.String bodycontent,               java.lang.String infoString,TagLibraryInfo taglib,TagExtraInfo tagExtraInfo,TagAttributeInfo[] attributeInfo,               java.lang.String displayName,               java.lang.String smallIcon,               java.lang.String largeIcon,TagVariableInfo[] tvi)
Constructor for TagInfo from data in the JSP 1.2 format for TLD. This class is to be instantiated only from the TagLibrary code under request from some JSP code that is parsing a TLD (Tag Library Descriptor). Note that, since TagLibibraryInfo reflects both TLD information and taglib directive information, a TagInfo instance is dependent on a taglib directive. This is probably a design error, which may be fixed in the future.
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
tagVariableInfo - An array of a TagVariableInfo (or null)

getTagName

public java.lang.StringgetTagName()
The name of the Tag.
Returns:
The (short) name of the tag.

getAttributes

publicTagAttributeInfo[]getAttributes()
Attribute information (in the TLD) on this tag. The return is an array describing the attributes of this tag, as indicated in the TLD. A null return means no attributes.
Returns:
The array of TagAttributeInfo for this tag.

getVariableInfo

publicVariableInfo[]getVariableInfo(TagData data)
Information on the scripting objects created by this tag at runtime. This is a convenience method on the associated TagExtraInfo class.

Default is null if the tag has no "id" attribute, otherwise, {"id", Object}

Parameters:
data - TagData describing this action.
Returns:
Array of VariableInfo elements.

isValid

public booleanisValid(TagData data)
Translation-time validation of the attributes. This is a convenience method on the associated TagExtraInfo class.
Parameters:
data - The translation-time TagData instance.
Returns:
Whether the data is valid.

setTagExtraInfo

public voidsetTagExtraInfo(TagExtraInfo tei)
Set the instance for extra tag information
Parameters:
tei - the TagExtraInfo instance

getTagExtraInfo

publicTagExtraInfogetTagExtraInfo()
The instance (if any) for extra tag information
Returns:
The TagExtraInfo instance, if any.

getTagClassName

public java.lang.StringgetTagClassName()
Name of the class that provides the handler for this tag.
Returns:
The name of the tag handler class.

getBodyContent

public java.lang.StringgetBodyContent()
The bodycontent information for this tag.
Returns:
the body content string.

getInfoString

public java.lang.StringgetInfoString()
The information string for the tag.
Returns:
the info string

setTagLibrary

public voidsetTagLibrary(TagLibraryInfo tl)
Set the TagLibraryInfo property. Note that a TagLibraryInfo element is dependent not just on the TLD information but also on the specific taglib instance used. This means that a fair amount of work needs to be done to construct and initialize TagLib objects. If used carefully, this setter can be used to avoid having to create new TagInfo elements for each taglib directive.
Parameters:
tl - the TagLibraryInfo to assign

getTagLibrary

publicTagLibraryInfogetTagLibrary()
The instance of TabLibraryInfo we belong to.
Returns:
the tab library instance we belong to.

getDisplayName

public java.lang.StringgetDisplayName()
Get the displayName
Returns:
A short name to be displayed by tools

getSmallIcon

public java.lang.StringgetSmallIcon()
Get the path to the small icon
Returns:
Path to a small icon to be displayed by tools

getLargeIcon

public java.lang.StringgetLargeIcon()
Get the path to the large icon
Returns:
Path to a large icon to be displayed by tools

getTagVariableInfos

publicTagVariableInfo[]getTagVariableInfos()
Get TagVariableInfo objects associated with this TagInfo
Returns:
A TagVariableInfo object associated with this

toString

public java.lang.StringtoString()
Stringify for debug purposes...
Overrides:
toString in classjava.lang.Object

         


[8]ページ先頭

©2009-2025 Movatter.jp