public class

SubstitutionGroupHandler

extends Object
java.lang.Object
   ↳ org.apache.xerces.impl.xs.SubstitutionGroupHandler

Class Overview

To store and validate information about substitutionGroup

Summary

Public Constructors
SubstitutionGroupHandler(XSGrammarBucket grammarBucket)
Default constructor
Public Methods
void addSubstitutionGroup(XSElementDecl[] elements)
add a list of substitution group information.
XSElementDecl getMatchingElemDecl(QName element, XSElementDecl exemplar)
XSElementDecl[] getSubstitutionGroup(XSElementDecl element)
get all elements that can substitute the given element, according to the spec, we shouldn't consider the {block} constraints.
boolean inSubstitutionGroup(XSElementDecl element, XSElementDecl exemplar)
void reset()
clear the internal registry of substitutionGroup information
Protected Methods
boolean substitutionGroupOK(XSElementDecl element, XSElementDecl exemplar, short blockingConstraint)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SubstitutionGroupHandler (XSGrammarBucket grammarBucket)

Default constructor

Public Methods

public void addSubstitutionGroup (XSElementDecl[] elements)

add a list of substitution group information.

public XSElementDecl getMatchingElemDecl (QName element, XSElementDecl exemplar)

public XSElementDecl[] getSubstitutionGroup (XSElementDecl element)

get all elements that can substitute the given element, according to the spec, we shouldn't consider the {block} constraints. from the spec, substitution group of a given element decl also contains the element itself. but the array returned from this method doesn't containt this element.

public boolean inSubstitutionGroup (XSElementDecl element, XSElementDecl exemplar)

public void reset ()

clear the internal registry of substitutionGroup information

Protected Methods

protected boolean substitutionGroupOK (XSElementDecl element, XSElementDecl exemplar, short blockingConstraint)