Representation of a XsdDocument.
Slurps/parses the .xsd file and stores all of its parsed dependency
data. Dependencies are usually defined as relative paths to the current
directory. For an .xsd document, there are 2 types of dependencies.
| Type | Name and description |
|---|---|
java.util.Set<java.lang.String> |
xsdImportsDependencies (imported) on other XSD documents via the xsd:import statement. |
java.util.Set<java.lang.String> |
xsdIncludesDependencies (included) on XSD documents via the xsd:include statement. |
java.lang.String |
xsdNamespaceNamespace of this document, from the xsd:targetNamespace statement. |
XsdSlurper |
xsdSlurperSlurps the namespace of the xsd file at slurpedDocument. |
| Constructor and description |
|---|
XsdDocument
(DocumentSlurper documentSlurper, DocumentResolver documentResolver, XsdSlurper xsdSlurper, java.io.File documentFile, groovy.util.slurpersupport.GPathResult slurpedDocument)Creates a new XsdDocument instance with a document slurper,
document resolver, xsd slurper, document File and a slurped Document |
| Type | Name and description |
|---|---|
java.lang.Object |
findResolvedXsdImports()Finds the absolute Files of the imported dependencies defined in the XSD. |
java.lang.Object |
findResolvedXsdIncludes()Finds the absolute Files of the included dependencies defined in the XSD. |
void |
slurp()Slurps for dependency data in slurpedDocument. |
| Methods inherited from class | Name |
|---|---|
class BaseSchemaDocument |
slurp |
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() |
Dependencies (imported) on other XSD documents via the
xsd:import statement.
Dependencies (included) on XSD documents via the
xsd:include statement.
Namespace of this document, from the xsd:targetNamespace statement.
Slurps the namespace of the xsd file at slurpedDocument.
Creates a new XsdDocument instance with a document slurper,
document resolver, xsd slurper, document File and a slurped Document
Finds the absolute Files of the imported dependencies defined in the XSD.
Finds the absolute Files of the included dependencies defined in the XSD.
Slurps for dependency data in slurpedDocument. Slurps for xsd imports and includes dependencies, and slurps xsd namespace.
Groovy Documentation