Class XSDRedefine

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

public class XSDRedefine extends SchemaElement
An xs:redefine element in an XML Schema Document
  • Constructor Details

    • XSDRedefine

      public XSDRedefine()
  • 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
    • getRedefinedSchema

      public SingleNamespaceSchema getRedefinedSchema()
      Get the referenced schema after redefinition of redefined components
      Returns:
      the post-redefinition schema
    • getExternalSchema

      public SingleNamespaceSchema getExternalSchema()
      Get the referenced schema before redefinition of redefined components
      Returns:
      the pre-redefinition schema
    • getExternalSchemaDocumentURI

      public String getExternalSchemaDocumentURI()
      Get the document URI of the referenced schema document
      Returns:
      the URI of the pre-redefinition schema
    • validate

      public void validate(SchemaCompiler compiler) throws SchemaException
      Validate this schema element, checking all document-level constraints
      Overrides:
      validate in class SchemaElement
      Parameters:
      compiler - the schema compiler
      Throws:
      SchemaException - if any XML representation constraints are violated
    • postValidate

      public void postValidate(SchemaCompiler compiler) throws SchemaException
      Process child elements after validation
      Overrides:
      postValidate in class SchemaElement
      Parameters:
      compiler - the schema compiler
      Throws:
      SchemaException - if errors are found