1 package com.thaiopensource.relaxng.parse; 2 3 import org.relaxng.datatype.ValidationContext; 4 5 public interface SchemaBuilder { 6 ParsedPattern makeChoice(ParsedPattern[] patterns, int nPatterns, Location loc, Annotations anno) throws BuildException; 7 ParsedPattern makeInterleave(ParsedPattern[] patterns, int nPatterns, Location loc, Annotations anno) throws BuildException; 8 ParsedPattern makeGroup(ParsedPattern[] patterns, int nPatterns, Location loc, Annotations anno) throws BuildException; 9 ParsedPattern makeOneOrMore(ParsedPattern p, Location loc, Annotations anno) throws BuildException; 10 ParsedPattern makeZeroOrMore(ParsedPattern p, Location loc, Annotations anno) throws BuildException; 11 ParsedPattern makeOptional(ParsedPattern p, Location loc, Annotations anno) throws BuildException; 12 ParsedPattern makeList(ParsedPattern p, Location loc, Annotations anno) throws BuildException; 13 ParsedPattern makeMixed(ParsedPattern p, Location loc, Annotations anno) throws BuildException; 14 ParsedPattern makeEmpty(Location loc, Annotations anno); 15 ParsedPattern makeNotAllowed(Location loc, Annotations anno); 16 ParsedPattern makeText(Location loc, Annotations anno); 17 ParsedPattern makeAttribute(ParsedNameClass nc, ParsedPattern p, Location loc, Annotations anno) throws BuildException; 18 ParsedPattern makeElement(ParsedNameClass nc, ParsedPattern p, Location loc, Annotations anno) throws BuildException; 19 DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc) throws BuildException; 20 ParsedPattern makeValue(String datatypeLibrary, String type, String value, Context c, String ns, 21 Location loc, Annotations anno) throws BuildException; 22 Grammar makeGrammar(Scope parent); 23 ParsedPattern annotate(ParsedPattern p, Annotations anno) throws BuildException; 24 ParsedNameClass annotate(ParsedNameClass nc, Annotations anno) throws BuildException; 25 ParsedPattern annotateAfter(ParsedPattern p, ParsedElementAnnotation e) throws BuildException; 26 ParsedNameClass annotateAfter(ParsedNameClass nc, ParsedElementAnnotation e) throws BuildException; 27 ParsedPattern commentAfter(ParsedPattern p, CommentList comments) throws BuildException; 28 ParsedNameClass commentAfter(ParsedNameClass nc, CommentList comments) throws BuildException; 29 ParsedPattern makeExternalRef(String uri, String ns, Scope scope, 30 Location loc, Annotations anno) throws BuildException, IllegalSchemaException; 31 ParsedNameClass makeChoice(ParsedNameClass[] nameClasses, int nNameClasses, Location loc, Annotations anno); 32 33 static final String INHERIT_NS = new String ("#inherit"); 34 ParsedNameClass makeName(String ns, String localName, String prefix, Location loc, Annotations anno); 35 ParsedNameClass makeNsName(String ns, Location loc, Annotations anno); 36 39 ParsedNameClass makeNsName(String ns, ParsedNameClass except, Location loc, Annotations anno); 40 ParsedNameClass makeAnyName(Location loc, Annotations anno); 41 44 ParsedNameClass makeAnyName(ParsedNameClass except, Location loc, Annotations anno); 45 Location makeLocation(String systemId, int lineNumber, int columnNumber); 46 Annotations makeAnnotations(CommentList comments, Context context); 47 ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, 48 Location loc, CommentList comments, Context context); 49 CommentList makeCommentList(); 50 ParsedPattern makeErrorPattern(); 51 ParsedNameClass makeErrorNameClass(); 52 boolean usesComments(); 53 } 54 | Popular Tags |