class DefaultDocumentResolver extends java.lang.Object
Service object to resolve a SchemaDocument's dependencies (which are
usually relative paths) into absolute paths.
| Type | Name and description |
|---|---|
AbsoluteFileResolver |
fileResolverPerforms the relative to absolute path resolution |
| Constructor and description |
|---|
DefaultDocumentResolver
(AbsoluteFileResolver afr)Construct this object with a AbsoluteFileResolver service delegate |
| Type | Name and description |
|---|---|
java.util.Map<java.lang.String, java.io.File> |
resolveRelativePaths(java.util.Set<java.lang.String> relativeDependencies, java.io.File documentDirectory)Resolves relative path dependencies into their absolute path java.io.File object (relative to the document's current directory). |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Performs the relative to absolute path resolution
Construct this object with a AbsoluteFileResolver service delegate
Resolves relative path dependencies into their absolute path java.io.File object (relative to the document's current directory).
if parsed file /some/dir/file.xsd has dependencies of
../otherDir/other.xsd
subDir/sub.xsd
/some/otherDir/other.xsd
/some/dir/subDir/sub.xsd
relativeDependencies - relative path dependencies of a
SchemaDocument.documentDirectory - the parent directory of the SchemaDocument
that is being resolved.Groovy Documentation