class DefaultXsdSlurper extends java.lang.Object
Slurps and finds XSD specific data
| Type | Name and description |
|---|---|
java.util.Set<java.io.File> |
findResolvedXsdImports(java.lang.String namespace, java.util.Set<java.lang.String> importedDependencies, java.util.Map<java.lang.String, java.io.File> absoluteDependencies)Finds defined imports on the xsd document. |
java.util.Set<java.io.File> |
findResolvedXsdIncludes(java.lang.String namespace, java.lang.String fileName, java.util.Set<java.lang.String> includedDependencies, java.util.Map<java.lang.String, java.io.File> absoluteDependencies)Finds defined imports on the xsd document. |
java.lang.Object |
resolveDependencies(java.util.Set<java.lang.String> dependencies, java.util.Map<java.lang.String, java.io.File> absoluteDependencies)Generally resolves a set of dependencies for the XsdDocument.
|
java.lang.String |
slurpNamespace(groovy.util.slurpersupport.GPathResult slurpedDocument, java.io.File documentFile)Slurps the namespace of the XSD document. |
| 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() |
Finds defined imports on the xsd document. In a XsdDocument, the imports and includes dependencies are saved as sets of Strings (which can be relative paths). There is also a map of All relative dependencies to their absolute file objects. Resolving the imports dependencies is merely a query on the maps keys for every relative import.
namespace - the namesapce of the document being operated onimportedDependencies - Set of imported dependencies this document
has definedabsoluteDependencies - map of absolute dependencies to query for the
imported dependenciesFinds defined imports on the xsd document. In a XsdDocument, the imports and includes dependencies are saved as sets of Strings (which can be relative paths). There is also a map of All relative dependencies to their absolute file objects. Resolving the includes dependencies is merely a query on the maps keys for every relative import.
namespace - the namesapce of the document being operated onfileName - the name of the xsd document being operated onincludedDependencies - Set of included dependencies this document
has definedabsoluteDependencies - map of absolute dependencies to query for the
imported dependencies Generally resolves a set of dependencies for the XsdDocument.
Resolves a set of dependencies against a map that has those same dependencies
as keys and the absolute Files as values.
If the dependency is not found in the map, a warning is logged and null is
inserted into the returned set.
XsdDocument
dependenciesdependencies - dependency stringsabsoluteDependencies - map of keys and values to query against Slurps the namespace of the XSD document.
If the namespaces is not defined via xsd:targetNamespace in the
root attributes, the namespace will be defined as the
documentFile.fileName of the xsd documents. A warning is issued
when this happens, but nothing to stop the execution.
slurpedDocument - slurped object to operate ondocumentFile - xsd file in systetm