Class XSDGroup

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

public class XSDGroup extends SchemaElement
An xs:group element in an XML Schema document
  • Constructor Details

    • XSDGroup

      public XSDGroup()
      Creates a new Group 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
    • getGroupDeclaration

      public ModelGroupDefinition getGroupDeclaration()
      Returns the Group declaration under construction.
      Returns:
      the constructed Group
    • getGroupReference

      public ModelGroupParticle getGroupReference()
      Returns the Group reference under construction.
      Returns:
      the constructed Group reference
    • 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 reporting errors and warnings
      Throws:
      SchemaException - if any XML representation constraints are violated
    • postValidate

      public void postValidate(SchemaCompiler compiler) throws SchemaException
      Additional processing after all the children of this element have been validated.
      Overrides:
      postValidate in class SchemaElement
      Parameters:
      compiler - used for reporting errors and warnings
      Throws:
      SchemaException - if errors are found