1 /* gnu.classpath.tools.doclets.xmldoclet.TargetContext
2 Copyright (C) 2001 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 package gnu
.classpath
.tools
.doclets
.xmldoclet
;
24 import java
.io
.InputStream
;
25 import java
.io
.OutputStream
;
26 import java
.io
.FileInputStream
;
27 import java
.io
.FileOutputStream
;
28 import java
.io
.IOException
;
32 import java
.util
.List
;
33 import java
.util
.Iterator
;
35 import java
.util
.HashMap
;
37 import gnu
.classpath
.tools
.doclets
.xmldoclet
.doctranslet
.DocTranslet
;
40 * Stores any XSL transformation and postprocessing-specific
41 * information given by the user on the doclet command line.
43 * @author Julian Scheid
45 public class TargetContext
{
48 * The DocTranslet to use for processing doclet output.
50 private DocTranslet docTranslet
;
53 * Directory to write final output to.
55 private File targetDirectory
;
58 * Directory where XSLT output will be written to. If an XSLT
59 * sheet was specified, but no postprocessing driver was given,
60 * this is the target directory specified by the user. Otherwise,
61 * this is a temporary directory.
63 private File xsltTargetDirectory
;
66 public TargetContext(DocTranslet docTranslet
, File targetDirectory
) {
67 this.docTranslet
= docTranslet
;
68 this.targetDirectory
= targetDirectory
;
71 public File
getTargetDirectory() {
72 return targetDirectory
;
75 public void setTargetDirectory(File targetDirectory
) {
76 this.targetDirectory
= targetDirectory
;
79 public DocTranslet
getDocTranslet() {
83 public void setDocTranslet(DocTranslet docTranslet
) {
84 this.docTranslet
= docTranslet
;