01: /*
02: * $Id: TransformerHandler.java,v 1.5 2001/11/02 22:07:45 db Exp $
03: * Copyright (C) 2001 Andrew Selkirk
04: * Copyright (C) 2001 David Brownell
05: *
06: * This file is part of GNU JAXP, a library.
07: *
08: * GNU JAXP is free software; you can redistribute it and/or modify
09: * it under the terms of the GNU General Public License as published by
10: * the Free Software Foundation; either version 2 of the License, or
11: * (at your option) any later version.
12: *
13: * GNU JAXP is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with this program; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21: *
22: * As a special exception, if you link this library with other files to
23: * produce an executable, this library does not by itself cause the
24: * resulting executable to be covered by the GNU General Public License.
25: * This exception does not however invalidate any other reasons why the
26: * executable file might be covered by the GNU General Public License.
27: */
28: package javax.xml.transform.sax;
29:
30: import org.xml.sax.ContentHandler;
31: import org.xml.sax.DTDHandler;
32: import org.xml.sax.ext.LexicalHandler;
33: import javax.xml.transform.Result;
34: import javax.xml.transform.Transformer;
35:
36: /**
37: * Transforms SAX input events to a Result, according to some
38: * stylesheet. Note the expectation that XSLT transforms will
39: * discard most DTD declarations (DeclHandler is not supported).
40: *
41: * @author Andrew Selkirk, David Brownell
42: * @version 1.0
43: */
44: public interface TransformerHandler extends ContentHandler,
45: LexicalHandler, DTDHandler {
46: /**
47: * Assigns the result of the transform.
48: */
49: public void setResult(Result result)
50: throws IllegalArgumentException;
51:
52: public void setSystemId(String systemID);
53:
54: public String getSystemId();
55:
56: /**
57: * Returns the associated transformer, for use in setting
58: * parameters and output properties.
59: */
60: public Transformer getTransformer();
61: }
|