SchemaBuilder and does all the semantic checks
required by the RELAX NG spec.
Whereas you normally write it as follows:
YourParsedPattern r = (YourParsedPattern)parseable.parse(sb);write this as follows:
YourParsedPattern r = (YourParsedPattern)parseable.parse(new CheckingSchemaBuilder(sb,eh));
The checking is done by using the rngom.binary package, so if you are using
that package for parsing schemas, then there's no need to use this.
| Access | Constructor and Description |
|---|---|
| public | CheckingSchemaBuilder(SchemaBuilder<N extends ParsedNameClass, P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>>
Your sb, ErrorHandler SchemaBuilder that parses RELAX NG schemas.All the errors found will be sent to this handler. eh)
|
| public | CheckingSchemaBuilder(SchemaBuilder<N extends ParsedNameClass, P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> sb, ErrorHandler eh, DatatypeLibraryFactory dlf)
|
| Modifier and Type | Method and Description |
|---|---|
| public ParsedPattern | expandPattern(ParsedPattern p)
Overrides com. Implements com. Called after all the parsing is done. |
| CheckingSchemaBuilder | back to summary |
|---|---|
public CheckingSchemaBuilder(SchemaBuilder<N extends ParsedNameClass, P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> sb, ErrorHandler eh)
| |
| CheckingSchemaBuilder | back to summary |
|---|---|
| public CheckingSchemaBuilder(SchemaBuilder<N extends ParsedNameClass, P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> sb, ErrorHandler eh, DatatypeLibraryFactory dlf) | |
| expandPattern | back to summary |
|---|---|
| public ParsedPattern expandPattern(ParsedPattern p) throws BuildException, IllegalSchemaException Overrides com. Implements com. Doc from com. Called after all the parsing is done. This hook typically allows as to expand notAllowed (if it's following the simplification as in the spec.) | |