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
SchemaDocument s that are imported from this document. |
Set<SchemaDocument> |
getIncludedDocuments()
Gets the
SchemaDocument s that are included from this document. |
Set<SchemaDocument> |
getReferencedDocuments()
Set of
SchemaDocument s that are included/imported from this document. |
Set<SchemaDocument> |
getReferers()
Set of
SchemaDocument s 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()
SchemaDocument
getSystemId
in interface SchemaDocument
XSOMParser
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 SchemaDocument
public SchemaImpl getSchema()
SchemaDocument
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.
getSchema
in interface SchemaDocument
public Set<SchemaDocument> getReferencedDocuments()
SchemaDocument
SchemaDocument
s that are included/imported from this document.getReferencedDocuments
in interface SchemaDocument
public Set<SchemaDocument> getIncludedDocuments()
SchemaDocument
SchemaDocument
s that are included from this document.getIncludedDocuments
in interface SchemaDocument
SchemaDocument.getReferencedDocuments()
.public Set<SchemaDocument> getImportedDocuments(String targetNamespace)
SchemaDocument
SchemaDocument
s that are imported from this document.getImportedDocuments
in interface SchemaDocument
targetNamespace
- The namespace URI of the import that you want to
get SchemaDocument
s for.SchemaDocument.getReferencedDocuments()
.public boolean includes(SchemaDocument doc)
SchemaDocument
Note that this method returns false if this document imports the given document.
includes
in interface SchemaDocument
public boolean imports(SchemaDocument doc)
SchemaDocument
Note that this method returns false if this document includes the given document.
imports
in interface SchemaDocument
public Set<SchemaDocument> getReferers()
SchemaDocument
SchemaDocument
s that include/import this document.
This works as the opposite of SchemaDocument.getReferencedDocuments()
.
getReferers
in interface SchemaDocument
Copyright © 2021 JBoss by Red Hat. All rights reserved.