01: /*
02: * $Id: Source.java,v 1.4 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;
29:
30: /**
31: * Identifies the URI for either a transformation (XSLT stylesheet)
32: * or an input to a transformation (XML document to be transformed).
33: *
34: * @author Andrew Selkirk, David Brownell
35: * @version 1.0
36: */
37: public interface Source {
38:
39: //-------------------------------------------------------------
40: // Interface: Source ------------------------------------------
41: //-------------------------------------------------------------
42:
43: /**
44: * Returns the URI for this source. Some sources may not need URIs,
45: * for example ones provided as an input stream, but such URIs
46: * are important for resolving relative URIs and for providing
47: * usable diagnostics.
48: */
49: public String getSystemId();
50:
51: /**
52: * Associates a URI with this source.
53: *
54: * @param systemID the URI
55: */
56: public void setSystemId(String systemID);
57:
58: } // Source
|