org.apache.xerces.impl.xs
Class SubstitutionGroupHandler
java.lang.Object
org.apache.xerces.impl.xs.SubstitutionGroupHandler
public class SubstitutionGroupHandler
extends java.lang.Object
To store and validate information about substitutionGroup
$Id: SubstitutionGroupHandler.java 320216 2005-02-04 03:36:57Z mrglavas $
SubstitutionGroupHandler
public SubstitutionGroupHandler(XSGrammarBucket grammarBucket)
Default constructor
addSubstitutionGroup
public void addSubstitutionGroup(XSElementDecl[] elements)
add a list of substitution group information.
getSubstitutionGroup
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.
reset
public void reset()
clear the internal registry of substitutionGroup information
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.