Class XSDCompositor

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

public class XSDCompositor extends SchemaElement
An xs:sequence, xs:choice, or xs:all element in an XML Schema document
  • Constructor Details

    • XSDCompositor

      public XSDCompositor()
      Creates a new Compositor element
  • 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
    • getModelGroup

      public ModelGroup getModelGroup()
      Returns the constructed Compositor.
      Returns:
      the Compositor that has been constructed
    • getModelGroupParticle

      public ModelGroupParticle getModelGroupParticle()
      Returns the particle referring to the constructed ModelGroup.
      Returns:
      the particle referring to the constructed ModelGroup.
    • validate

      public void validate(SchemaCompiler compiler) throws SchemaException
      Validate this schema element, checking all document-level constraints
      Overrides:
      validate in class SchemaElement
      Parameters:
      compiler - used for error reporting
      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 - used for error reporting
      Throws:
      SchemaException - if errors are found