You are viewing a plain text version of this content. The canonical link for it is here.
Posted to servletapi-dev@jakarta.apache.org by ed...@locus.apache.org on 2000/10/24 23:53:41 UTC
cvs commit: jakarta-servletapi/src/share/javax/servlet/jsp/tagext TagInfo.java
eduardop 00/10/24 14:53:41
Modified: src/share/javax/servlet/jsp/tagext Tag: SERVLET_23_JSP_12
TagInfo.java
Log:
Added a setter for TagLibraryInfo. This can be used to avoid having to
create a whole new TagInfo object for each taglib reference.
Revision Changes Path
No revision
No revision
1.1.1.1.4.3 +28 -3 jakarta-servletapi/src/share/javax/servlet/jsp/tagext/TagInfo.java
Index: TagInfo.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi/src/share/javax/servlet/jsp/tagext/TagInfo.java,v
retrieving revision 1.1.1.1.4.2
retrieving revision 1.1.1.1.4.3
diff -u -r1.1.1.1.4.2 -r1.1.1.1.4.3
--- TagInfo.java 2000/10/23 18:19:08 1.1.1.1.4.2
+++ TagInfo.java 2000/10/24 21:53:40 1.1.1.1.4.3
@@ -209,7 +209,9 @@
* @return the body content string.
*/
- public String getBodyContent() { return bodyContent; }
+ public String getBodyContent() {
+ return bodyContent;
+ }
/**
@@ -218,16 +220,39 @@
* @return the info string
*/
- public String getInfoString() { return infoString; }
+ public String getInfoString() {
+ return infoString;
+ }
/**
+ * Set the TagLibraryInfo property.
+ *
+ * Note that a TagLibraryInfo element is dependent
+ * not just on the TLD information but also on the
+ * specific taglib instance used. This means that
+ * a fair amount of work needs to be done to construct
+ * and initialize TagLib objects.
+ *
+ * If used carefully, this setter can be used to avoid having to
+ * create new TagInfo elements for each taglib directive.
+ *
+ * @param tl the TagLibraryInfo to assign
+ */
+
+ public void setTagLibrary(TagLibraryInfo tl) {
+ tagLibrary = tl;
+ }
+
+ /**
* The instance of TabLibraryInfo we belong to.
*
* @return the tab library instance we belong to.
*/
- public TagLibraryInfo getTagLibrary() { return tagLibrary; }
+ public TagLibraryInfo getTagLibrary() {
+ return tagLibrary;
+ }
/**