public final class SchemaDocumentImpl extends java.lang.Object implements SchemaDocument
SchemaDocument
implementation.Modifier and Type | Field and Description |
---|---|
(package private) java.util.Set<SchemaDocumentImpl> |
references
SchemaDocumentImpl s that are referenced from this document. |
(package private) java.util.Set<SchemaDocumentImpl> |
referers
SchemaDocumentImpl s that are referencing this document. |
private SchemaImpl |
schema |
private java.lang.String |
schemaDocumentURI
URI of the schema document to be parsed.
|
Modifier | Constructor and Description |
---|---|
protected |
SchemaDocumentImpl(SchemaImpl schema,
java.lang.String _schemaDocumentURI) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
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. |
SchemaImpl |
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.
|
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.
|
private final SchemaImpl schema
private final java.lang.String schemaDocumentURI
final java.util.Set<SchemaDocumentImpl> references
SchemaDocumentImpl
s that are referenced from this document.final java.util.Set<SchemaDocumentImpl> referers
SchemaDocumentImpl
s that are referencing this document.protected SchemaDocumentImpl(SchemaImpl schema, java.lang.String _schemaDocumentURI)
public java.lang.String getSystemId()
SchemaDocument
getSystemId
in interface SchemaDocument
XSOMParser
was not given the system Id.public java.lang.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 java.util.Set<SchemaDocument> getReferencedDocuments()
SchemaDocument
SchemaDocument
s that are included/imported from this document.getReferencedDocuments
in interface SchemaDocument
public java.util.Set<SchemaDocument> getIncludedDocuments()
SchemaDocument
SchemaDocument
s that are included from this document.getIncludedDocuments
in interface SchemaDocument
SchemaDocument.getReferencedDocuments()
.public java.util.Set<SchemaDocument> getImportedDocuments(java.lang.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 java.util.Set<SchemaDocument> getReferers()
SchemaDocument
SchemaDocument
s that include/import this document.
This works as the opposite of SchemaDocument.getReferencedDocuments()
.
getReferers
in interface SchemaDocument
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object