Package org.apache.xerces.impl.xs
Class SubstitutionGroupHandler
java.lang.Object
org.apache.xerces.impl.xs.SubstitutionGroupHandler
To store and validate information about substitutionGroup
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: SubstitutionGroupHandler.java 982466 2010-08-05 04:41:01Z mrglavas $
- Author:
- Sandy Gao, IBM
-
Constructor Summary
ConstructorsConstructorDescriptionSubstitutionGroupHandler
(XSElementDeclHelper elementDeclHelper) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubstitutionGroup
(XSElementDecl[] elements) add a list of substitution group information.getMatchingElemDecl
(org.apache.xerces.xni.QName element, XSElementDecl exemplar) 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 informationprotected boolean
substitutionGroupOK
(XSElementDecl element, XSElementDecl exemplar, short blockingConstraint)
-
Constructor Details
-
SubstitutionGroupHandler
Default constructor
-
-
Method Details
-
getMatchingElemDecl
public XSElementDecl getMatchingElemDecl(org.apache.xerces.xni.QName element, XSElementDecl exemplar) -
substitutionGroupOK
protected boolean substitutionGroupOK(XSElementDecl element, XSElementDecl exemplar, short blockingConstraint) -
inSubstitutionGroup
-
reset
public void reset()clear the internal registry of substitutionGroup information -
addSubstitutionGroup
add a list of substitution group information. -
getSubstitutionGroup
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.
-