|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SchemaDocument
Represents a parsed XML schema document.
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()| Method Summary | |
|---|---|
Set<SchemaDocument> |
getImportedDocuments(String targetNamespace)
Gets the SchemaDocuments that are imported from this document. |
Set<SchemaDocument> |
getIncludedDocuments()
Gets the SchemaDocuments that are included from this document. |
Set<SchemaDocument> |
getReferencedDocuments()
Set of SchemaDocuments that are included/imported from this document. |
Set<SchemaDocument> |
getReferers()
Set of SchemaDocuments that include/import this document. |
XSSchema |
getSchema()
Gets XSSchema component that contains all the schema
components defined in this namespace. |
String |
getSystemId()
Gets the system ID of the schema document. |
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. |
| Method Detail |
|---|
String getSystemId()
XSOMParser was not given the system Id.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.
Set<SchemaDocument> getReferencedDocuments()
SchemaDocuments that are included/imported from this document.
Set<SchemaDocument> getIncludedDocuments()
SchemaDocuments that are included from this document.
getReferencedDocuments().Set<SchemaDocument> getImportedDocuments(String targetNamespace)
SchemaDocuments that are imported from this document.
targetNamespace - The namespace URI of the import that you want to
get SchemaDocuments 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.
Set<SchemaDocument> getReferers()
SchemaDocuments that include/import this document.
This works as the opposite of getReferencedDocuments().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||