SchemaDocumentImpl
public interface SchemaDocument
Unlike schema components defined in XS****
interfaces,
which are inherently de-coupled from where it was loaded from,
SchemaDocument
represents a single XML infoset that
is a schema document.
This concept is often useful in tracking down the reference relationship among schema documents.
XSOMParser.getDocuments()
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<SchemaDocument> |
getImportedDocuments(java.lang.String targetNamespace) |
Gets the
SchemaDocument s that are imported from this document. |
java.util.Set<SchemaDocument> |
getIncludedDocuments() |
Gets the
SchemaDocument s that are included from this document. |
java.util.Set<SchemaDocument> |
getReferencedDocuments() |
Set of
SchemaDocument s that are included/imported from this document. |
java.util.Set<SchemaDocument> |
getReferers() |
Set of
SchemaDocument s that include/import this document. |
XSSchema |
getSchema() |
Gets
XSSchema component that contains all the schema
components defined in this namespace. |
java.lang.String |
getSystemId() |
Gets the system ID of the schema document.
|
java.lang.String |
getTargetNamespace() |
The namespace that this schema defines.
|
boolean |
imports(SchemaDocument doc) |
Returns true if this document imports the given document.
|
boolean |
includes(SchemaDocument doc) |
Returns true if this document includes the given document.
|
java.lang.String getSystemId()
XSOMParser
was not given the system Id.java.lang.String getTargetNamespace()
More precisely, this method simply returns the targetNamespace
attribute
of the schema document. When schemas are referenced in certain ways
(AKA chameleon schema), schema components in this schema document
may end up defining components in other namespaces.
XSSchema getSchema()
XSSchema
component that contains all the schema
components defined in this namespace.
The returned XSSchema
contains not just components
defined in this SchemaDocument
but all the other components
defined in all the schemas that collectively define this namespace.
java.util.Set<SchemaDocument> getReferencedDocuments()
SchemaDocument
s that are included/imported from this document.java.util.Set<SchemaDocument> getIncludedDocuments()
SchemaDocument
s that are included from this document.getReferencedDocuments()
.java.util.Set<SchemaDocument> getImportedDocuments(java.lang.String targetNamespace)
SchemaDocument
s that are imported from this document.targetNamespace
- The namespace URI of the import that you want to
get SchemaDocument
s for.getReferencedDocuments()
.boolean includes(SchemaDocument doc)
Note that this method returns false if this document imports the given document.
boolean imports(SchemaDocument doc)
Note that this method returns false if this document includes the given document.
java.util.Set<SchemaDocument> getReferers()
SchemaDocument
s that include/import this document.
This works as the opposite of getReferencedDocuments()
.
Copyright © 2018 Oracle Corporation. All rights reserved.