Class TagXml
java.lang.Object
org.apache.tomcat.util.descriptor.tld.TagXml
Model of a tag define in a tag library descriptor. This represents the information as parsed from the XML but differs
from TagInfo in that it does not provide a link back to the tag library that defined it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of tag attributes.Returns the body content type.Returns the display name.getInfo()Returns the description info.Returns the large icon path.getName()Returns the tag name.Returns the small icon path.Returns the tag handler class.Returns the TagExtraInfo class.Returns the list of tag variables.booleanReturns whether the tag accepts dynamic attributes.voidsetBodyContent(String bodyContent) Sets the body content type.voidsetDisplayName(String displayName) Sets the display name.voidsetDynamicAttributes(boolean dynamicAttributes) Sets whether the tag accepts dynamic attributes.voidSets the description info.voidsetLargeIcon(String largeIcon) Sets the large icon path.voidSets the tag name.voidsetSmallIcon(String smallIcon) Sets the small icon path.voidsetTagClass(String tagClass) Sets the tag handler class.voidsetTeiClass(String teiClass) Sets the TagExtraInfo class.
-
Constructor Details
-
TagXml
public TagXml()Constructs a new TagXml.
-
-
Method Details
-
getName
Returns the tag name.- Returns:
- the name
-
setName
Sets the tag name.- Parameters:
name- the name
-
getTagClass
Returns the tag handler class.- Returns:
- the tag class
-
setTagClass
Sets the tag handler class.- Parameters:
tagClass- the tag class
-
getTeiClass
Returns the TagExtraInfo class.- Returns:
- the TEI class
-
setTeiClass
Sets the TagExtraInfo class.- Parameters:
teiClass- the TEI class
-
getBodyContent
Returns the body content type.- Returns:
- the body content type
-
setBodyContent
Sets the body content type.- Parameters:
bodyContent- the body content type
-
getDisplayName
Returns the display name.- Returns:
- the display name
-
setDisplayName
Sets the display name.- Parameters:
displayName- the display name
-
getSmallIcon
Returns the small icon path.- Returns:
- the small icon path
-
setSmallIcon
Sets the small icon path.- Parameters:
smallIcon- the small icon path
-
getLargeIcon
Returns the large icon path.- Returns:
- the large icon path
-
setLargeIcon
Sets the large icon path.- Parameters:
largeIcon- the large icon path
-
getInfo
Returns the description info.- Returns:
- the info
-
setInfo
Sets the description info.- Parameters:
info- the info
-
hasDynamicAttributes
public boolean hasDynamicAttributes()Returns whether the tag accepts dynamic attributes.- Returns:
- true if dynamic attributes are supported
-
setDynamicAttributes
public void setDynamicAttributes(boolean dynamicAttributes) Sets whether the tag accepts dynamic attributes.- Parameters:
dynamicAttributes- true if dynamic attributes are supported
-
getAttributes
Returns the list of tag attributes.- Returns:
- the attributes
-
getVariables
Returns the list of tag variables.- Returns:
- the variables
-