2
* Copyright 2003-2004 The Apache Software Foundation.
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
17
// $Id: Source.java 226183 2005-04-08 10:39:14Z neeraj $
19
package javax.xml.transform;
22
* An object that implements this interface contains the information
23
* needed to act as source input (XML source or transformation instructions).
25
public interface Source {
28
* Set the system identifier for this Source.
30
* <p>The system identifier is optional if the source does not
31
* get its data from a URL, but it may still be useful to provide one.
32
* The application can use a system identifier, for example, to resolve
33
* relative URIs and to include in error messages and warnings.</p>
35
* @param systemId The system identifier as a URL string.
37
public void setSystemId(String systemId);
40
* Get the system identifier that was set with setSystemId.
42
* @return The system identifier that was set with setSystemId, or null
43
* if setSystemId was not called.
45
public String getSystemId();