Class SchemaDocumentImpl

    • Constructor Detail

      • SchemaDocumentImpl

        protected SchemaDocumentImpl​(SchemaImpl schema,
                                     java.lang.String _schemaDocumentURI)
    • Method Detail

      • getSystemId

        public java.lang.String getSystemId()
        Description copied from interface: SchemaDocument
        Gets the system ID of the schema document.
        Specified by:
        getSystemId in interface SchemaDocument
        Returns:
        null if XSOMParser was not given the system Id.
      • getTargetNamespace

        public java.lang.String 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 interface SchemaDocument
        Returns:
        can be "" but never null.
      • getSchema

        public SchemaImpl getSchema()
        Description copied from interface: SchemaDocument
        Gets 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.

        Specified by:
        getSchema in interface SchemaDocument
        Returns:
        never null.
      • includes

        public boolean includes​(SchemaDocument doc)
        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 interface SchemaDocument
      • imports

        public boolean imports​(SchemaDocument doc)
        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 interface SchemaDocument
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object