Class SubstitutionGroupHandler
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.SubstitutionGroupHandler
-
public class SubstitutionGroupHandler extends Object
To store and validate information about substitutionGroup- Version:
- $Id$
- Author:
- Sandy Gao, IBM
-
-
Constructor Summary
Constructors Constructor Description SubstitutionGroupHandler(XSElementDeclHelper elementDeclHelper)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubstitutionGroup(XSElementDecl[] elements)
add a list of substitution group information.XSElementDecl
getMatchingElemDecl(QName element, XSElementDecl exemplar)
XSElementDecl[]
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 Detail
-
SubstitutionGroupHandler
public SubstitutionGroupHandler(XSElementDeclHelper elementDeclHelper)
Default constructor
-
-
Method Detail
-
getMatchingElemDecl
public XSElementDecl getMatchingElemDecl(QName element, XSElementDecl exemplar)
-
substitutionGroupOK
protected boolean substitutionGroupOK(XSElementDecl element, XSElementDecl exemplar, short blockingConstraint)
-
inSubstitutionGroup
public boolean inSubstitutionGroup(XSElementDecl element, XSElementDecl exemplar)
-
reset
public void reset()
clear the internal registry of substitutionGroup information
-
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.
-
-