KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > relaxng > parse > SchemaBuilder


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 JavaDoc datatypeLibrary, String JavaDoc type, Location loc) throws BuildException;
20   ParsedPattern makeValue(String JavaDoc datatypeLibrary, String JavaDoc type, String JavaDoc value, Context c, String JavaDoc 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 JavaDoc uri, String JavaDoc 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 JavaDoc INHERIT_NS = new String JavaDoc("#inherit");
34   ParsedNameClass makeName(String JavaDoc ns, String JavaDoc localName, String JavaDoc prefix, Location loc, Annotations anno);
35   ParsedNameClass makeNsName(String JavaDoc ns, Location loc, Annotations anno);
36   /**
37    * Caller must enforce constraints on except.
38    */

39   ParsedNameClass makeNsName(String JavaDoc ns, ParsedNameClass except, Location loc, Annotations anno);
40   ParsedNameClass makeAnyName(Location loc, Annotations anno);
41    /**
42    * Caller must enforce constraints on except.
43    */

44   ParsedNameClass makeAnyName(ParsedNameClass except, Location loc, Annotations anno);
45   Location makeLocation(String JavaDoc systemId, int lineNumber, int columnNumber);
46   Annotations makeAnnotations(CommentList comments, Context context);
47   ElementAnnotationBuilder makeElementAnnotationBuilder(String JavaDoc ns, String JavaDoc localName, String JavaDoc prefix,
48                                                         Location loc, CommentList comments, Context context);
49   CommentList makeCommentList();
50   ParsedPattern makeErrorPattern();
51   ParsedNameClass makeErrorNameClass();
52   boolean usesComments();
53 }
54
Popular Tags