cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/serializers AbstractSerializer.java XMLSerializer.java
Date Sat, 12 Feb 2000 00:31:41 GMT
pier        00/02/11 16:31:41

  Modified:    src/org/apache/cocoon/serializers Tag: xml-cocoon2-alpha0
                        AbstractSerializer.java XMLSerializer.java
  Log:
  Fixed XML serializer bug not closing elements.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +4 -14     xml-cocoon/src/org/apache/cocoon/serializers/Attic/AbstractSerializer.java
  
  Index: AbstractSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serializers/Attic/AbstractSerializer.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- AbstractSerializer.java	2000/02/11 15:02:03	1.1.2.2
  +++ AbstractSerializer.java	2000/02/12 00:31:40	1.1.2.3
  @@ -8,6 +8,7 @@
   package org.apache.cocoon.serializers;
   
   import org.apache.cocoon.Cocoon;
  +import org.apache.cocoon.framework.AbstractComponent;
   import org.apache.cocoon.framework.ConfigurationException;
   import org.apache.cocoon.framework.Configurations;
   
  @@ -17,14 +18,13 @@
    *         Exoffice Technologies, INC.</a>
    * @author Copyright 1999 &copy; <a href="http://www.apache.org">The Apache
    *         Software Foundation</a>. All rights reserved.
  - * @version CVS $Revision: 1.1.2.2 $ $Date: 2000/02/11 15:02:03 $
  + * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/02/12 00:31:40 $
    * @since Cocoon 2.0
    */
  -public abstract class AbstractSerializer implements Serializer {
  +public abstract class AbstractSerializer extends AbstractComponent
  +implements Serializer {
       /** This <code>AbstractSerializer</code> configuration parameters. */
       protected Configurations configurations=null;
  -    /** This <code>AbstractSerializer</code> instance of <code>Cocoon</code>.*/
  -    protected Cocoon cocoon=null;
   
       /**
        * Configure this <code>XMLSerializer</code>.
  @@ -45,15 +45,5 @@
        */
       public boolean modifiedSince(long date) {
           return(false);
  -    }
  -
  -    /**
  -     * Set the <code>Cocoon</code> instance used by this
  -     * <code>XMLSerializer</code>.
  -     * <br>
  -     * By default this method only stores the <code>Cocoon</code> instance.
  -     */
  -    public void setCocoonInstance(Cocoon cocoon) {
  -        this.cocoon=cocoon;
       }
   }
  
  
  
  1.1.2.3   +2 -3      xml-cocoon/src/org/apache/cocoon/serializers/Attic/XMLSerializer.java
  
  Index: XMLSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serializers/Attic/XMLSerializer.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- XMLSerializer.java	2000/02/11 15:02:03	1.1.2.2
  +++ XMLSerializer.java	2000/02/12 00:31:40	1.1.2.3
  @@ -25,7 +25,7 @@
    *         Exoffice Technologies, INC.</a>
    * @author Copyright 1999 &copy; <a href="http://www.apache.org">The Apache
    *         Software Foundation</a>. All rights reserved.
  - * @version CVS $Revision: 1.1.2.2 $ $Date: 2000/02/11 15:02:03 $
  + * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/02/12 00:31:40 $
    * @since Cocoon 2.0
    */
   public class XMLSerializer extends AbstractSerializer implements XMLConsumer {
  @@ -177,11 +177,10 @@
               this.closeElement();
               return;
           }
  -        
           this.print('<');
           this.print('/');
           this.print(this.qualify(uri,loc,raw));
  -        this.closeElement();
  +        this.print('>');
       }
   
       /**
  
  
  

Mime
View raw message