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
-
setTlibVersion
Sets the tag library version.- Parameters:
tlibVersion- the library version
-
getJspVersion
-
setJspVersion
Sets the JSP version requirement.- Parameters:
jspVersion- the JSP version
-
getShortName
-
setShortName
Sets the short name of the tag library.- Parameters:
shortName- the short name
-
getUri
-
setUri
-
getInfo
-
setInfo
-
getValidator
-
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
-
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
-
addFunction
-
getFunctions
Returns the list of function definitions.- Returns:
- the functions
-