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

Constructor Summary
SubstitutionGroupHandler(XSGrammarResolver grammarResolver)
          Default constructor
 
Method Summary
 void addSubstitutionGroup(XSElementDecl element)
          add one substitution group pair
 XSElementDecl getMatchingElemDecl(org.apache.xerces.xni.QName element, XSElementDecl exemplar)
           
 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.
 void reset()
          clear the internal registry of substitutionGroup information
 boolean substitutionGroupOK(XSElementDecl element, XSElementDecl exemplar, short blockingConstraint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstitutionGroupHandler

public SubstitutionGroupHandler(XSGrammarResolver grammarResolver)
Default constructor
Method Detail

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.