Class TaglibXml
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.tld.TaglibXml
-
public class TaglibXml extends java.lang.ObjectCommon 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 Constructor Description TaglibXml()Constructs a new TaglibXml.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFunction(java.lang.String name, java.lang.String klass, java.lang.String signature)Adds a function definition to this tag library.voidaddListener(java.lang.String listener)Adds a listener class name to this tag library.voidaddTag(TagXml tag)Adds a tag definition to this tag library.voidaddTagFile(TagFileXml tag)Adds a tag file definition to this tag library.java.util.List<FunctionInfo>getFunctions()Returns the list of function definitions.java.lang.StringgetInfo()Returns the description information.java.lang.StringgetJspVersion()Returns the JSP version requirement.java.util.List<java.lang.String>getListeners()Returns the list of listener class names.java.lang.StringgetShortName()Returns the short name of the tag library.java.util.List<TagFileXml>getTagFiles()Returns the list of tag file definitions.java.util.List<TagXml>getTags()Returns the list of tag definitions.java.lang.StringgetTlibVersion()Returns the tag library version.java.lang.StringgetUri()Returns the URI of the tag library.ValidatorXmlgetValidator()Returns the validator configuration.voidsetInfo(java.lang.String info)Sets the description information.voidsetJspVersion(java.lang.String jspVersion)Sets the JSP version requirement.voidsetShortName(java.lang.String shortName)Sets the short name of the tag library.voidsetTlibVersion(java.lang.String tlibVersion)Sets the tag library version.voidsetUri(java.lang.String uri)Sets the URI of the tag library.voidsetValidator(ValidatorXml validator)Sets the validator configuration.
-
-
-
Method Detail
-
getTlibVersion
public java.lang.String getTlibVersion()
Returns the tag library version.- Returns:
- the library version
-
setTlibVersion
public void setTlibVersion(java.lang.String tlibVersion)
Sets the tag library version.- Parameters:
tlibVersion- the library version
-
getJspVersion
public java.lang.String getJspVersion()
Returns the JSP version requirement.- Returns:
- the JSP version
-
setJspVersion
public void setJspVersion(java.lang.String jspVersion)
Sets the JSP version requirement.- Parameters:
jspVersion- the JSP version
-
getShortName
public java.lang.String getShortName()
Returns the short name of the tag library.- Returns:
- the short name
-
setShortName
public void setShortName(java.lang.String shortName)
Sets the short name of the tag library.- Parameters:
shortName- the short name
-
getUri
public java.lang.String getUri()
Returns the URI of the tag library.- Returns:
- the URI
-
setUri
public void setUri(java.lang.String uri)
Sets the URI of the tag library.- Parameters:
uri- the URI
-
getInfo
public java.lang.String getInfo()
Returns the description information.- Returns:
- the info
-
setInfo
public void setInfo(java.lang.String info)
Sets the description information.- Parameters:
info- the info
-
getValidator
public ValidatorXml getValidator()
Returns the validator configuration.- Returns:
- the validator
-
setValidator
public void setValidator(ValidatorXml validator)
Sets the validator configuration.- Parameters:
validator- the validator
-
addTag
public void addTag(TagXml tag)
Adds a tag definition to this tag library.- Parameters:
tag- the tag to add
-
getTags
public java.util.List<TagXml> getTags()
Returns the list of tag definitions.- Returns:
- the tags
-
addTagFile
public void addTagFile(TagFileXml tag)
Adds a tag file definition to this tag library.- Parameters:
tag- the tag file to add
-
getTagFiles
public java.util.List<TagFileXml> getTagFiles()
Returns the list of tag file definitions.- Returns:
- the tag files
-
addListener
public void addListener(java.lang.String listener)
Adds a listener class name to this tag library.- Parameters:
listener- the listener class name
-
getListeners
public java.util.List<java.lang.String> getListeners()
Returns the list of listener class names.- Returns:
- the listeners
-
addFunction
public void addFunction(java.lang.String name, java.lang.String klass, java.lang.String signature)Adds a function definition to this tag library.- Parameters:
name- the function nameklass- the function classsignature- the function signature
-
getFunctions
public java.util.List<FunctionInfo> getFunctions()
Returns the list of function definitions.- Returns:
- the functions
-
-