]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
add accessor methods for currentDocument
authorWilliam Victor Mote <vmote@apache.org>
Wed, 17 Sep 2003 16:48:02 +0000 (16:48 +0000)
committerWilliam Victor Mote <vmote@apache.org>
Wed, 17 Sep 2003 16:48:02 +0000 (16:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196920 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/apps/Driver.java

index 108b054e59f52a8d67444bf14dc893ae6c59ee72..add324ed54300315421e1e79a0f2f743a244f0c6 100644 (file)
@@ -686,5 +686,20 @@ public class Driver implements LogEnabled {
         }
     }
 
-}
+    /**
+     * Public accessor for setting the currentDocument to process.
+     * @param document the Document object that should be processed.
+     */
+    public void setCurrentDocument(Document document) {
+        currentDocument = document;
+    }
 
+    /**
+     * Public accessor for getting the currentDocument
+     * @return the currentDocument
+     */
+    public Document getCurrentDocument() {
+       return currentDocument;
+    }
+
+}