~ubuntu-branches/ubuntu/gutsy/libjaxp1.3-java/gutsy

« back to all changes in this revision

Viewing changes to javax/xml/transform/Source.java

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2006-08-03 10:30:58 UTC
  • Revision ID: james.westby@ubuntu.com-20060803103058-7jwwiqv9g8w9094d
Tags: upstream-1.3.03
ImportĀ upstreamĀ versionĀ 1.3.03

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2003-2004 The Apache Software Foundation.
 
3
 *
 
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
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
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.
 
15
 */
 
16
 
 
17
// $Id: Source.java 226183 2005-04-08 10:39:14Z neeraj $
 
18
 
 
19
package javax.xml.transform;
 
20
 
 
21
/**
 
22
 * An object that implements this interface contains the information
 
23
 * needed to act as source input (XML source or transformation instructions).
 
24
 */
 
25
public interface Source {
 
26
 
 
27
    /**
 
28
     * Set the system identifier for this Source.
 
29
     *
 
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>
 
34
     *
 
35
     * @param systemId The system identifier as a URL string.
 
36
     */
 
37
    public void setSystemId(String systemId);
 
38
 
 
39
    /**
 
40
     * Get the system identifier that was set with setSystemId.
 
41
     *
 
42
     * @return The system identifier that was set with setSystemId, or null
 
43
     * if setSystemId was not called.
 
44
     */
 
45
    public String getSystemId();
 
46
}