Class SingleNamespaceSchema

  • All Implemented Interfaces:
    NotationSet

    public class SingleNamespaceSchema
    extends PreparedSchema
    A schema (collection of schema components) that has an identifiable target namespace: typically the set of components derived from a single import or include. It is not actually necessary that all the components should belong to this target namespace. In the specification, this is "the schema corresponding to some schema document".
    • Method Detail

      • setTargetNamespace

        public void setTargetNamespace​(NamespaceUri targetNamespace)
        Sets the target namespace for this Schema
        Parameters:
        targetNamespace - the target namespace for this Schema
        See Also:
        "2.7 XML Schema Part 1: Structures"
      • getTargetNamespace

        public NamespaceUri getTargetNamespace()
        Returns the target namespace for this Schema, or "" if the schema is a no-namespace schema.
        Returns:
        the target namespace for this Schema, or "" if the schema is a no-namespace schema.