public class TagInfo
extends java.lang.Object
<tag>
<name>foo</name>
<tagclass>com.caucho.tags.FooTag</tagclass>
<teiclass>com.caucho.tags.FooTagInfo</teiclass>
<bodycontent>jsp</bodycontent>
<attribute>
...
</attribute>
</tag>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BODY_CONTENT_EMPTY
Constant for the "empty" body content
|
static java.lang.String |
BODY_CONTENT_JSP
Constant for standard "jsp" processed body content
|
static java.lang.String |
BODY_CONTENT_SCRIPTLESS
Constant for tags which forbid scripts
|
static java.lang.String |
BODY_CONTENT_TAG_DEPENDENT
Constant for "tag-dependent" unprocessed verbatim body content
|
Constructor and Description |
---|
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.
|
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.
|
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,
boolean dynamicAttributes)
Constructor for TagInfo.
|
Modifier and Type | Method and Description |
---|---|
TagAttributeInfo[] |
getAttributes()
Returns information about the tags allowed attributes.
|
java.lang.String |
getBodyContent()
Returns the body content type.
|
java.lang.String |
getDisplayName()
Returns the display name to be displayed by tools.
|
java.lang.String |
getInfoString()
Returns the tag's infomation string.
|
java.lang.String |
getLargeIcon()
Returns the path to the large icon to be displayed by the tools.
|
java.lang.String |
getSmallIcon()
Returns the path to the small icon to be displayed by the tools.
|
java.lang.String |
getTagClassName()
Returns the tag's class name.
|
TagExtraInfo |
getTagExtraInfo()
Returns the tag extra info for the tag.
|
TagLibraryInfo |
getTagLibrary()
Returns the TagLibraryInfo for the tag.
|
java.lang.String |
getTagName()
Returns the tag's name.
|
TagVariableInfo[] |
getTagVariableInfos()
Returns the tag variable info in the tld
|
VariableInfo[] |
getVariableInfo(TagData data)
Information about the variables created by the tag at runtime.
|
boolean |
hasDynamicAttributes()
Retursn true if dynamic attributes are supported.
|
boolean |
isValid(TagData data)
Returns true if the tag instance is valid.
|
void |
setTagExtraInfo(TagExtraInfo tei)
Sets the tag extra info for the tag.
|
void |
setTagLibrary(TagLibraryInfo info)
Sets the TagLibraryInfo for the tag.
|
ValidationMessage[] |
validate(TagData data)
Validate attributes.
|
public static final java.lang.String BODY_CONTENT_EMPTY
public static final java.lang.String BODY_CONTENT_JSP
public static final java.lang.String BODY_CONTENT_SCRIPTLESS
public static final java.lang.String BODY_CONTENT_TAG_DEPENDENT
public TagInfo(java.lang.String tagName, java.lang.String tagClassName, java.lang.String bodyContent, java.lang.String infoString, TagLibraryInfo taglib, TagExtraInfo tagExtraInfo, TagAttributeInfo[] attributeInfo)
tagName
- tag nametagClassName
- the tag's class namebodyContent
- description of the expected body contentsinfoString
- informatino string of the tagtaglib
- pointer to the TagLibraryInfotagExtraInfo
- the tag's custom TagExtraInfo.tagAttributeInfo
- information about the tags attribute from the tld.public 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)
tagName
- tag nametagClassName
- the tag's class namebodyContent
- description of the expected body contentsinfoString
- informatino string of the tagtaglib
- pointer to the TagLibraryInfotagExtraInfo
- the tag's custom TagExtraInfo.tagAttributeInfo
- information about the tags attribute from the tld.displayName
- the GUI builder's display namesmallIcon
- small icon for a GUI builderlargeIcon
- large icon for a GUI buildertvi
- variable info in the tldpublic 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, boolean dynamicAttributes)
tagName
- tag nametagClassName
- the tag's class namebodyContent
- description of the expected body contentsinfoString
- informatino string of the tagtaglib
- pointer to the TagLibraryInfotagExtraInfo
- the tag's custom TagExtraInfo.tagAttributeInfo
- information about the tags attribute from the tld.displayName
- the GUI builder's display namesmallIcon
- small icon for a GUI builderlargeIcon
- large icon for a GUI buildertvi
- variable info in the tldpublic java.lang.String getTagName()
public java.lang.String getInfoString()
public java.lang.String getTagClassName()
public java.lang.String getBodyContent()
public java.lang.String getDisplayName()
public java.lang.String getLargeIcon()
public java.lang.String getSmallIcon()
public TagAttributeInfo[] getAttributes()
public TagVariableInfo[] getTagVariableInfos()
public VariableInfo[] getVariableInfo(TagData data)
data
- information about the tag instancepublic boolean hasDynamicAttributes()
public boolean isValid(TagData data)
data
- information about the tag instancepublic TagExtraInfo getTagExtraInfo()
public void setTagExtraInfo(TagExtraInfo tei)
public TagLibraryInfo getTagLibrary()
public void setTagLibrary(TagLibraryInfo info)
public ValidationMessage[] validate(TagData data)