Package com.sun.xml.xsom.impl.parser
Class SchemaDocumentImpl
java.lang.Object
com.sun.xml.xsom.impl.parser.SchemaDocumentImpl
- All Implemented Interfaces:
SchemaDocument
SchemaDocument
implementation.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
ModifierConstructorDescriptionprotected
SchemaDocumentImpl
(SchemaImpl schema, String _schemaDocumentURI) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getImportedDocuments
(String targetNamespace) Gets theSchemaDocument
s that are imported from this document.Gets theSchemaDocument
s that are included from this document.Set ofSchemaDocument
s that are included/imported from this document.Set ofSchemaDocument
s that include/import this document.GetsXSSchema
component that contains all the schema components defined in this namespace.Gets the system ID of the schema document.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.
-
Constructor Details
-
SchemaDocumentImpl
-
-
Method Details
-
getSystemId
Description copied from interface:SchemaDocument
Gets the system ID of the schema document.- Specified by:
getSystemId
in interfaceSchemaDocument
- Returns:
- null if
XSOMParser
was not given the system Id.
-
getTargetNamespace
Description copied from interface:SchemaDocument
The namespace that this schema defines.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.- Specified by:
getTargetNamespace
in interfaceSchemaDocument
- Returns:
- can be "" but never null.
-
getSchema
Description copied from interface:SchemaDocument
GetsXSSchema
component that contains all the schema components defined in this namespace.The returned
XSSchema
contains not just components defined in thisSchemaDocument
but all the other components defined in all the schemas that collectively define this namespace.- Specified by:
getSchema
in interfaceSchemaDocument
- Returns:
- never null.
-
getReferencedDocuments
Description copied from interface:SchemaDocument
Set ofSchemaDocument
s that are included/imported from this document.- Specified by:
getReferencedDocuments
in interfaceSchemaDocument
- Returns:
- can be empty but never null. read-only.
-
getIncludedDocuments
Description copied from interface:SchemaDocument
Gets theSchemaDocument
s that are included from this document.- Specified by:
getIncludedDocuments
in interfaceSchemaDocument
- Returns:
- can be empty but never null. read-only.
this set is always a subset of
SchemaDocument.getReferencedDocuments()
.
-
getImportedDocuments
Description copied from interface:SchemaDocument
Gets theSchemaDocument
s that are imported from this document.- Specified by:
getImportedDocuments
in interfaceSchemaDocument
- Parameters:
targetNamespace
- The namespace URI of the import that you want to getSchemaDocument
s for.- Returns:
- can be empty but never null. read-only.
this set is always a subset of
SchemaDocument.getReferencedDocuments()
.
-
includes
Description copied from interface:SchemaDocument
Returns true if this document includes the given document.Note that this method returns false if this document imports the given document.
- Specified by:
includes
in interfaceSchemaDocument
-
imports
Description copied from interface:SchemaDocument
Returns true if this document imports the given document.Note that this method returns false if this document includes the given document.
- Specified by:
imports
in interfaceSchemaDocument
-
getReferers
Description copied from interface:SchemaDocument
Set ofSchemaDocument
s that include/import this document.This works as the opposite of
SchemaDocument.getReferencedDocuments()
.- Specified by:
getReferers
in interfaceSchemaDocument
- Returns:
- can be empty but never null. read-only.
-
equals
-
hashCode
public int hashCode()
-