# Source

public interface **Source**

|---|---|---|
| Known Indirect Subclasses [DOMSource](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/dom/DOMSource.html), [SAXSource](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXSource.html), [StreamSource](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/stream/StreamSource.html) |---|---| | [DOMSource](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/dom/DOMSource.html) | Acts as a holder for a transformation Source tree in the form of a Document Object Model (DOM) tree. | | [SAXSource](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXSource.html) | Acts as an holder for SAX-style Source. | | [StreamSource](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/stream/StreamSource.html) | Acts as an holder for a transformation Source in the form of a stream of XML markup. | |||

An object that implements this interface contains the information
needed to act as source input (XML source or transformation instructions).

### Public Method Summary

|---|---|
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getSystemId](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Source.html#getSystemId())() Get the system identifier that was set with setSystemId. |
| abstract void | [setSystemId](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Source.html#setSystemId(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Set the system identifier for this Source. |

## Public Methods

#### public abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getSystemId**
()

Get the system identifier that was set with setSystemId.

##### Returns

- The system identifier that was set with setSystemId, or null if setSystemId was not called.

#### public abstract void
**setSystemId**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId)

Set the system identifier for this Source.

The system identifier is optional if the source does not
get its data from a URL, but it may still be useful to provide one.
The application can use a system identifier, for example, to resolve
relative URIs and to include in error messages and warnings.

<br />

##### Parameters

| systemId | The system identifier as a URL string. |
|---|---|