Class TaglibXml
java.lang.Object
org.apache.tomcat.util.descriptor.tld.TaglibXml
Common representation of a Tag Library Descriptor (TLD) XML file.
This stores the raw result of parsing an TLD XML file, flattening different version of the descriptors to a common format. This is different to a TagLibraryInfo instance that would be passed to a tag validator in that it does not contain the uri and prefix values used by a JSP to reference this tag library.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunction(String name, String klass, String signature) Adds a function definition to this tag library.voidaddListener(String listener) Adds a listener class name to this tag library.voidAdds a tag definition to this tag library.voidaddTagFile(TagFileXml tag) Adds a tag file definition to this tag library.Returns the list of function definitions.getInfo()Returns the description information.Returns the JSP version requirement.Returns the list of listener class names.Returns the short name of the tag library.Returns the list of tag file definitions.getTags()Returns the list of tag definitions.Returns the tag library version.getUri()Returns the URI of the tag library.Returns the validator configuration.voidSets the description information.voidsetJspVersion(String jspVersion) Sets the JSP version requirement.voidsetShortName(String shortName) Sets the short name of the tag library.voidsetTlibVersion(String tlibVersion) Sets the tag library version.voidSets the URI of the tag library.voidsetValidator(ValidatorXml validator) Sets the validator configuration.
-
Constructor Details
-
TaglibXml
public TaglibXml()Constructs a new TaglibXml.
-
-
Method Details
-
getTlibVersion
Returns the tag library version.- Returns:
- the library version
-
setTlibVersion
Sets the tag library version.- Parameters:
tlibVersion- the library version
-
getJspVersion
Returns the JSP version requirement.- Returns:
- the JSP version
-
setJspVersion
Sets the JSP version requirement.- Parameters:
jspVersion- the JSP version
-
getShortName
Returns the short name of the tag library.- Returns:
- the short name
-
setShortName
Sets the short name of the tag library.- Parameters:
shortName- the short name
-
getUri
Returns the URI of the tag library.- Returns:
- the URI
-
setUri
Sets the URI of the tag library.- Parameters:
uri- the URI
-
getInfo
Returns the description information.- Returns:
- the info
-
setInfo
Sets the description information.- Parameters:
info- the info
-
getValidator
Returns the validator configuration.- Returns:
- the validator
-
setValidator
Sets the validator configuration.- Parameters:
validator- the validator
-
addTag
Adds a tag definition to this tag library.- Parameters:
tag- the tag to add
-
getTags
Returns the list of tag definitions.- Returns:
- the tags
-
addTagFile
Adds a tag file definition to this tag library.- Parameters:
tag- the tag file to add
-
getTagFiles
Returns the list of tag file definitions.- Returns:
- the tag files
-
addListener
Adds a listener class name to this tag library.- Parameters:
listener- the listener class name
-
getListeners
Returns the list of listener class names.- Returns:
- the listeners
-
addFunction
Adds a function definition to this tag library.- Parameters:
name- the function nameklass- the function classsignature- the function signature
-
getFunctions
Returns the list of function definitions.- Returns:
- the functions
-