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
- Version:
- $Id: SubstitutionGroupHandler.java,v 1.1 2001/10/25 20:36:02 elena Exp $
- Author:
- Sandy Gao, IBM
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SubstitutionGroupHandler
public SubstitutionGroupHandler(XSGrammarResolver grammarResolver)
- Default constructor
reset
public void reset()
- clear the internal registry of substitutionGroup information
addSubstitutionGroup
public void addSubstitutionGroup(XSElementDecl element)
- add one substitution group pair
getSubstitutionGroup
public XSElementDecl[] getSubstitutionGroup(java.lang.String elementUri,
java.lang.String elementName)
- get all elements that can substitute the given element,
according to the spec, we shouldn't consider the {block} constraints.
getMatchingElemDecl
public XSElementDecl getMatchingElemDecl(org.apache.xerces.xni.QName element,
XSElementDecl exemplar)
substitutionGroupOK
public boolean substitutionGroupOK(XSElementDecl element,
XSElementDecl exemplar,
short blockingConstraint)
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.