public class XmlDependencyScanner
extends java.lang.Object
Tracker
classes.Constructor and Description |
---|
XmlDependencyScanner()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.net.URI,java.lang.Exception> |
getErrors() |
java.util.Set<java.net.URI> |
getReferences(java.net.URI uri)
Get the references (imports, includes, etc) of a given
resource.
|
java.util.Set<java.net.URI> |
getReferers(java.net.URI uri)
Get all the URI's that refer to a URI.
|
org.xml.sax.EntityResolver |
getResolver() |
java.util.Set<java.net.URI> |
getURIs() |
boolean |
isError() |
void |
process(java.net.URI uri)
Process the URI: parse the document and follow any imports (recursively)
to discover all imported resources.
|
void |
setResolver(org.xml.sax.EntityResolver resolver)
Set the
EntityResolver that should be used to obtain the
byte streams for URIs. |
public void setResolver(org.xml.sax.EntityResolver resolver)
EntityResolver
that should be used to obtain the
byte streams for URIs.resolver
- EntityResolver
or null for the default (URL) resolverpublic org.xml.sax.EntityResolver getResolver()
public void process(java.net.URI uri)
uri
- public java.util.Set<java.net.URI> getURIs()
public java.util.Set<java.net.URI> getReferences(java.net.URI uri)
uri
- URI of the resourceSet
of referencespublic boolean isError()
public java.util.Set<java.net.URI> getReferers(java.net.URI uri)
uri
- URI refered toSet
of resources that refer to the resourcepublic java.util.Map<java.net.URI,java.lang.Exception> getErrors()