|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.relaxng.RestrictedChecker
public class RestrictedChecker
Checker for a grammar to represent a Restricted RELAX NG schema.
Definitions:element
and attribute patterns are ignored.
element,
data, list, value, or text patterns.
attribute patterns (excluding attributes with names belonging
to the XSI namespace http://www.w3.org/2001/XMLSchema-instance).
element pattern P, any two
element patterns that are top-level-contained by the child of P
and have non-disjoint name classes must have the same (identical) content.
choice pattern, except if its branches have disjoint combinations
of xsi:type and xsi:nil attribute values
(and those attributes must have singleton name classes and singleton values of type QName).
Every optional attribute list pattern must have an attribute pattern as child.
interleave content pattern
must be a group or element pattern.
A group pattern that top-level contains an interleave content pattern
must have only one content pattern child.
refs are implicitly treated as the patterns they refer to.
For every element and optional pattern that has more than
one child pattern, we treat the children as implicitly enclosed by a group pattern.
Also, all mixed patterns are implicitly desugared to interleave patterns,
so the restrictions also apply to mixed.
It is implicitly assumed that the grammar represents a (general) RELAX NG schema, in particular that the
requirements listed in Section 7 of the spec
are satisfied.
| Constructor Summary | |
|---|---|
RestrictedChecker(PrintStream err)
Constructs a new checker. |
|
RestrictedChecker(PrintWriter err)
Constructs a new checker. |
|
| Method Summary | |
|---|---|
boolean |
check(Grammar g)
Checks the given grammar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestrictedChecker(PrintStream err)
err - print stream (using default character encoding) for error messages, null if nonepublic RestrictedChecker(PrintWriter err)
err - print writer for error messages, null if none| Method Detail |
|---|
public boolean check(Grammar g)
g - schema grammar
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||