Class XSDImport

All Implemented Interfaces:
Source, SourceLocator, ActiveSource, GroundedValue, Item, MutableNodeInfo, NamespaceResolver, NodeInfo, Sequence, Location, SteppingNode, SiblingCountingNode, Locator

public class XSDImport extends AnnotationParent
An xs:import element in an XML Schema document
  • Constructor Details

    • XSDImport

      public XSDImport()
  • Method Details

    • prepareAttributes

      protected void prepareAttributes() throws SchemaException
      Validate and process the attributes on this element in the schema document
      Specified by:
      prepareAttributes in class SchemaElement
      Throws:
      SchemaException - if any errors are found in the attributes
    • getImportedSchema

      public PreparedSchema getImportedSchema()
      Get the imported schema. Returns null if the imported schema was found to be invalid or if no import took place because the namespace was already present in the schema cache
      Returns:
      the imported schema
    • getTargetNamespace

      public NamespaceUri getTargetNamespace()
      Get the target namespace. Return "" for the no-namespace
      Returns:
      the target namespace, using "" to represent the no-namespace