| Modifier and Type | Field and Description |
|---|---|
protected nu.xom.Document |
document
The document.
|
protected String |
encoding
Input source encoding.
|
protected ISourceFactory |
factory
The source factory used to create it.
|
protected File |
file
The source as file.
|
protected IDocumentLoader |
loader
A document loader.
|
protected IResourceManager |
manager
The resource manager.
|
protected INamespaceInfo |
namespaceInfo
The namespace info.
|
protected INamespaceLoader |
nsloader
A namespace loader.
|
protected String |
string
The source as String.
|
protected URI |
uri
The source as URI.
|
DEFAULT_ENCODING, FEATURE_ENCODING| Constructor and Description |
|---|
SourceImpl(String encoding,
String string,
ISourceFactory factory,
IDocumentLoader loader,
INamespaceLoader nsloader)
Creates a source instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
nu.xom.Document |
getDocument()
The specification document.
|
String |
getEncoding()
Return the encoding.
|
ISourceFactory |
getFactory()
The source factory.
|
File |
getFile()
The source reference as a
java.io.File instance. |
IResourceManager |
getManager()
A resource manager.
|
INamespaceInfo |
getNamespaceInfo()
Get meta-information associated to namespace.
|
List<nu.xom.Element> |
getScenarios()
The specification scenarios.
|
String |
getString()
The source reference as String.
|
URI |
getURI()
The source reference as a
java.net.URI instance. |
int |
hashCode() |
String |
relative(ISource other)
Returns the reference as a relative String.
|
ISource |
resolve(ISource other)
The relative source resolved.
|
protected List<nu.xom.Element> |
toElements(nu.xom.Nodes ns)
Convert to a sequence of elements.
|
String |
toString() |
protected String encoding
protected String string
protected File file
protected URI uri
protected ISourceFactory factory
protected IResourceManager manager
protected IDocumentLoader loader
protected nu.xom.Document document
protected INamespaceLoader nsloader
protected INamespaceInfo namespaceInfo
public SourceImpl(String encoding, String string, ISourceFactory factory, IDocumentLoader loader, INamespaceLoader nsloader)
encoding - The source encoding.string - The source reference.factory - The factory.loader - The document loader.nsloader - The namespace information loader.public String getEncoding()
IEncodedgetEncoding in interface IEncodedpublic String getString()
ISourcepublic File getFile()
ISourcejava.io.File instance.public URI getURI()
ISourcejava.net.URI instance.public ISourceFactory getFactory()
ISourcegetFactory in interface ISourcepublic ISource resolve(ISource other) throws SourceException
ISourceresolve in interface ISourceother - The reference to be opened.SourceException - On creation errors.public String relative(ISource other)
ISourcepublic IResourceManager getManager()
ISourcegetManager in interface ISourcepublic nu.xom.Document getDocument()
throws SourceException
ISourcegetDocument in interface ISourceSourceException - On creation error.public INamespaceInfo getNamespaceInfo() throws SourceException
ISourcegetNamespaceInfo in interface ISourceSourceException - On namespace info reading.public List<nu.xom.Element> getScenarios() throws SourceException
ISourcegetScenarios in interface ISourceSourceException - On creation error.protected List<nu.xom.Element> toElements(nu.xom.Nodes ns)
ns - Nodes.Copyright © 2016. All rights reserved.