public final class SchemaDocumentImpl extends Object implements SchemaDocument
SchemaDocument implementation.| Modifier | Constructor and Description |
|---|---|
protected |
SchemaDocumentImpl(SchemaImpl schema,
String _schemaDocumentURI) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
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. |
SchemaImpl |
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.
|
int |
hashCode() |
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.
|
protected SchemaDocumentImpl(SchemaImpl schema, String _schemaDocumentURI)
public String getSystemId()
SchemaDocumentgetSystemId in interface SchemaDocumentXSOMParser was not given the system Id.public String getTargetNamespace()
SchemaDocument
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.
getTargetNamespace in interface SchemaDocumentpublic SchemaImpl getSchema()
SchemaDocumentXSSchema 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.
getSchema in interface SchemaDocumentpublic Set<SchemaDocument> getReferencedDocuments()
SchemaDocumentSchemaDocuments that are included/imported from this document.getReferencedDocuments in interface SchemaDocumentpublic Set<SchemaDocument> getIncludedDocuments()
SchemaDocumentSchemaDocuments that are included from this document.getIncludedDocuments in interface SchemaDocumentSchemaDocument.getReferencedDocuments().public Set<SchemaDocument> getImportedDocuments(String targetNamespace)
SchemaDocumentSchemaDocuments that are imported from this document.getImportedDocuments in interface SchemaDocumenttargetNamespace - The namespace URI of the import that you want to
get SchemaDocuments for.SchemaDocument.getReferencedDocuments().public boolean includes(SchemaDocument doc)
SchemaDocumentNote that this method returns false if this document imports the given document.
includes in interface SchemaDocumentpublic boolean imports(SchemaDocument doc)
SchemaDocumentNote that this method returns false if this document includes the given document.
imports in interface SchemaDocumentpublic Set<SchemaDocument> getReferers()
SchemaDocumentSchemaDocuments that include/import this document.
This works as the opposite of SchemaDocument.getReferencedDocuments().
getReferers in interface SchemaDocumentCopyright © 2005–2017 Oracle Corporation. All rights reserved.