jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt ParamTag.java ParameterAcceptingTag.java StyleTag.java XalanStyleTag.java
Date Fri, 23 Nov 2001 09:42:09 GMT
jstrachan    01/11/23 01:42:09

  Modified:    xtags/src/org/apache/taglibs/xtags/xslt ParamTag.java
                        ParameterAcceptingTag.java StyleTag.java
                        XalanStyleTag.java
  Log:
  Allowed XSLT parameters to take any kind of object
  
  Revision  Changes    Path
  1.2       +4 -4      jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/ParamTag.java
  
  Index: ParamTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/ParamTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParamTag.java	2001/07/24 13:44:23	1.1
  +++ ParamTag.java	2001/11/23 09:42:09	1.2
  @@ -73,7 +73,7 @@
       private String name;
       
       /** Holds value of property value. */
  -    private String value;
  +    private Object value;
       
       
       public ParamTag() {
  @@ -118,17 +118,17 @@
           this.name = name;
       }
       
  -    public String getValue() {
  +    public Object getValue() {
           return value;
       }
       
  -    public void setValue(String value) {
  +    public void setValue(Object value) {
           this.value = value;
       }
   
       // Implementation methods
       //-------------------------------------------------------------------------       
            
  -    protected void defineParameter(String value) throws JspException {        
  +    protected void defineParameter(Object value) throws JspException {        
           ParameterAcceptingTag tag = (ParameterAcceptingTag) findAncestorWithClass( 
               this, ParameterAcceptingTag.class 
           );
  
  
  
  1.2       +1 -1      jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/ParameterAcceptingTag.java
  
  Index: ParameterAcceptingTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/ParameterAcceptingTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParameterAcceptingTag.java	2001/07/24 13:44:23	1.1
  +++ ParameterAcceptingTag.java	2001/11/23 09:42:09	1.2
  @@ -67,6 +67,6 @@
   public interface ParameterAcceptingTag {
   
       /** Sets the given parameter name and value */
  -    public void setParameter(String name, String value);
  +    public void setParameter(String name, Object value);
       
   }
  
  
  
  1.7       +1 -1      jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/StyleTag.java
  
  Index: StyleTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/StyleTag.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StyleTag.java	2001/09/26 07:53:32	1.6
  +++ StyleTag.java	2001/11/23 09:42:09	1.7
  @@ -130,7 +130,7 @@
       
       // ParameterAcceptingTag interface
       //-------------------------------------------------------------------------       
        
  -    public void setParameter(String name, String value) {
  +    public void setParameter(String name, Object value) {
           if ( parameters == null ) {
               parameters = new HashMap();
           }
  
  
  
  1.4       +1 -1      jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/XalanStyleTag.java
  
  Index: XalanStyleTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/xtags/src/org/apache/taglibs/xtags/xslt/XalanStyleTag.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XalanStyleTag.java	2001/08/17 16:28:37	1.3
  +++ XalanStyleTag.java	2001/11/23 09:42:09	1.4
  @@ -118,7 +118,7 @@
   
       // ParameterAcceptingTag interface
       //-------------------------------------------------------------------------       
        
  -    public void setParameter(String name, String value) {
  +    public void setParameter(String name, Object value) {
           if ( parameters == null ) {
               parameters = new HashMap();
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message