public class RestrictionChecker extends Object
ExpressionWalker is used to walk the content model thoroughly. Depending on the current context, different walkers are used so that we can detect contextual restrictions properly.
For each ElementExp and AttributeExp, its name class is checked to detect the constraint set out in the section 7.1.6. Also, a set is used to avoid redundant checks.
Modifier and Type | Class and Description |
---|---|
protected class |
RestrictionChecker.DuplicateNameChecker |
Constructor and Description |
---|
RestrictionChecker(RELAXNGReader _reader) |
Modifier and Type | Method and Description |
---|---|
void |
check()
Traverses the grammar and performs the contextual check.
|
void |
checkNameClass(NameClass nc)
Checks the contextual restriction on a name class.
|
public RestrictionChecker(RELAXNGReader _reader)
public void check()
public void checkNameClass(NameClass nc)
If an error is found, it is reported through GrammarReader.
Copyright © 2016 Oracle Corporation. All rights reserved.