|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ode.utils.xml.capture.XmlDependencyScanner
public class XmlDependencyScanner
XML Dependency Scanner, processes XML and follows "import"s, "include"s,
and the like to discover the transitive closure of the dependencies.
The scanner supports WSDL, XMLSchema, and BPEL import elements, and can
be extended by implementing additional Tracker
classes.
Constructor Summary | |
---|---|
XmlDependencyScanner()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlDependencyScanner()
Method Detail |
---|
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 resource
Set
of referencespublic boolean isError()
public java.util.Set<java.net.URI> getReferers(java.net.URI uri)
uri
- URI refered to
Set
of resources that refer to the resourcepublic java.util.Map<java.net.URI,java.lang.Exception> getErrors()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |