OSDN Git Service

libjava/ChangeLog:
[pf3gnuchains/gcc-fork.git] / libjava / classpath / tools / gnu / classpath / tools / doclets / xmldoclet / TargetContext.java
diff --git a/libjava/classpath/tools/gnu/classpath/tools/doclets/xmldoclet/TargetContext.java b/libjava/classpath/tools/gnu/classpath/tools/doclets/xmldoclet/TargetContext.java
new file mode 100644 (file)
index 0000000..72dd9f6
--- /dev/null
@@ -0,0 +1,86 @@
+/* gnu.classpath.tools.doclets.xmldoclet.TargetContext\r
+   Copyright (C) 2001 Free Software Foundation, Inc.\r
+\r
+This file is part of GNU Classpath.\r
+\r
+GNU Classpath is free software; you can redistribute it and/or modify\r
+it under the terms of the GNU General Public License as published by\r
+the Free Software Foundation; either version 2, or (at your option)\r
+any later version.\r
\r
+GNU Classpath is distributed in the hope that it will be useful, but\r
+WITHOUT ANY WARRANTY; without even the implied warranty of\r
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+General Public License for more details.\r
+\r
+You should have received a copy of the GNU General Public License\r
+along with GNU Classpath; see the file COPYING.  If not, write to the\r
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA\r
+02111-1307 USA. */\r
+\r
+package gnu.classpath.tools.doclets.xmldoclet;\r
+\r
+import java.io.File;\r
+import java.io.InputStream;\r
+import java.io.OutputStream;\r
+import java.io.FileInputStream;\r
+import java.io.FileOutputStream;\r
+import java.io.IOException;\r
+\r
+import java.net.URL;\r
+\r
+import java.util.List;\r
+import java.util.Iterator;\r
+import java.util.Map;\r
+import java.util.HashMap;\r
+\r
+import gnu.classpath.tools.doclets.xmldoclet.doctranslet.DocTranslet;\r
+\r
+/**\r
+ *  Stores any XSL transformation and postprocessing-specific\r
+ *  information given by the user on the doclet command line.\r
+ *\r
+ *  @author Julian Scheid\r
+ */\r
+public class TargetContext {\r
+\r
+   /**\r
+    *  The DocTranslet to use for processing doclet output.\r
+    */\r
+   private DocTranslet docTranslet;\r
+\r
+   /**\r
+    *  Directory to write final output to.\r
+    */\r
+   private File targetDirectory;\r
+\r
+   /**\r
+    *  Directory where XSLT output will be written to. If an XSLT\r
+    *  sheet was specified, but no postprocessing driver was given,\r
+    *  this is the target directory specified by the user. Otherwise,\r
+    *  this is a temporary directory.\r
+    */\r
+   private File xsltTargetDirectory;\r
+\r
+\r
+   public TargetContext(DocTranslet docTranslet, File targetDirectory) {\r
+      this.docTranslet = docTranslet;\r
+      this.targetDirectory = targetDirectory;\r
+   }\r
+\r
+   public File getTargetDirectory() {\r
+      return targetDirectory;\r
+   }\r
+\r
+   public void setTargetDirectory(File targetDirectory) {\r
+      this.targetDirectory = targetDirectory;\r
+   }\r
+\r
+   public DocTranslet getDocTranslet() {\r
+      return docTranslet;\r
+   }\r
+\r
+   public void setDocTranslet(DocTranslet docTranslet) {\r
+      this.docTranslet = docTranslet;\r
+   }\r
+}\r