| org.kohsuke.rngom.parse.host.SchemaBuilderHost org.kohsuke.rngom.ast.util.CheckingSchemaBuilder
CheckingSchemaBuilder | public class CheckingSchemaBuilder extends SchemaBuilderHost (Code) | | Wraps a
SchemaBuilder and does all the semantic checks
required by the RELAX NG spec.
Usage
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.
author: Kohsuke Kawaguchi (kk@kohsuke.org) |
CheckingSchemaBuilder | public CheckingSchemaBuilder(SchemaBuilder sb, ErrorHandler eh)(Code) | | Parameters: sb - Your SchemaBuilder that parses RELAX NG schemas. Parameters: eh - All the errors found will be sent to this handler. |
Methods inherited from org.kohsuke.rngom.parse.host.SchemaBuilderHost | public ParsedPattern annotate(ParsedPattern _p, Annotations _anno) throws BuildException(Code)(Java Doc) public ParsedPattern annotateAfter(ParsedPattern _p, ParsedElementAnnotation _e) throws BuildException(Code)(Java Doc) public ParsedPattern commentAfter(ParsedPattern _p, CommentList _comments) throws BuildException(Code)(Java Doc) public ParsedPattern expandPattern(ParsedPattern _p) throws BuildException, IllegalSchemaException(Code)(Java Doc) public NameClassBuilder getNameClassBuilder() throws BuildException(Code)(Java Doc) public Annotations makeAnnotations(CommentList _comments, Context context)(Code)(Java Doc) public ParsedPattern makeAttribute(ParsedNameClass _nc, ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public ParsedPattern makeChoice(List patterns, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public CommentList makeCommentList()(Code)(Java Doc) public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location _loc) throws BuildException(Code)(Java Doc) public ParsedPattern makeElement(ParsedNameClass _nc, ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, Location _loc, CommentList _comments, Context context)(Code)(Java Doc) public ParsedPattern makeEmpty(Location _loc, Annotations _anno)(Code)(Java Doc) public ParsedPattern makeErrorPattern()(Code)(Java Doc) public ParsedPattern makeExternalRef(Parseable current, String uri, String ns, Scope _scope, Location _loc, Annotations _anno) throws BuildException, IllegalSchemaException(Code)(Java Doc) public Grammar makeGrammar(Scope _parent)(Code)(Java Doc) public ParsedPattern makeGroup(List patterns, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public ParsedPattern makeInterleave(List patterns, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public ParsedPattern makeList(ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public Location makeLocation(String systemId, int lineNumber, int columnNumber)(Code)(Java Doc) public ParsedPattern makeMixed(ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public ParsedPattern makeNotAllowed(Location _loc, Annotations _anno)(Code)(Java Doc) public ParsedPattern makeOneOrMore(ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public ParsedPattern makeOptional(ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public ParsedPattern makeText(Location _loc, Annotations _anno)(Code)(Java Doc) public ParsedPattern makeValue(String datatypeLibrary, String type, String value, Context c, String ns, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public ParsedPattern makeZeroOrMore(ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException(Code)(Java Doc) public boolean usesComments()(Code)(Java Doc)
|
|
|