org.apache.xerces.validators.schema
Class SubstitutionGroupComparator
java.lang.Object
|
+--org.apache.xerces.validators.schema.SubstitutionGroupComparator
- public class SubstitutionGroupComparator
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubstitutionGroupComparator
public SubstitutionGroupComparator(GrammarResolver grammarResolver,
StringPool stringPool,
XMLErrorReporter errorReporter)
getStringPool
public StringPool getStringPool()
getErrorReporter
public XMLErrorReporter getErrorReporter()
isEquivalentTo
public boolean isEquivalentTo(QName anElement,
QName exemplar)
throws java.lang.Exception
isAllowedByWildcard
public boolean isAllowedByWildcard(QName element,
int wuri,
boolean wother)
throws java.lang.Exception
- check whether one element or any element in its substitution group
is allowed by a given wildcard uri
- Parameters:
element
- the QName of a given elementwuri
- the uri of the wildcardwother
- whether the uri is from ##other, so wuri is excluded- Returns:
- whether the element is allowed by the wildcard
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.