public class SubstitutionGroupHandler extends Object
Constructor and Description |
---|
SubstitutionGroupHandler(XSGrammarBucket grammarBucket)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
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 boolean |
substitutionGroupOK(XSElementDecl element,
XSElementDecl exemplar,
short blockingConstraint) |
public SubstitutionGroupHandler(XSGrammarBucket grammarBucket)
public XSElementDecl getMatchingElemDecl(QName element, XSElementDecl exemplar)
protected boolean substitutionGroupOK(XSElementDecl element, XSElementDecl exemplar, short blockingConstraint)
public boolean inSubstitutionGroup(XSElementDecl element, XSElementDecl exemplar)
public void reset()
public void addSubstitutionGroup(XSElementDecl[] elements)
public XSElementDecl[] getSubstitutionGroup(XSElementDecl element)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.