]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Modified clear() to return the event.
authorPeter Bernard West <pbwest@apache.org>
Wed, 27 Nov 2002 03:25:18 +0000 (03:25 +0000)
committerPeter Bernard West <pbwest@apache.org>
Wed, 27 Nov 2002 03:25:18 +0000 (03:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195636 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/xml/XMLEvent.java

index ec662cac9b48e635930cd96bc17cb5e2aceda341..0f795ec53dbc2c4c9838092243e1ba203244ca95 100644 (file)
@@ -116,14 +116,16 @@ public class XMLEvent {
     /**
      * Clear the fields of this event.  Provided for pool operations.
      * The <i>namespaces</i> field is not cleared.
+     * @return the cleared event.
      */
-    public void clear() {
+    public XMLEvent clear() {
         type = NOEVENT;
         chars = null;
         uriIndex = 0;
         localName = null;
         qName = null;
         attributes = null;
+        return this;
     }
 
     public int getType() { return type; }