001 package com.thaiopensource.relaxng.parse;
002
003 public interface GrammarSection {
004
005 static final class Combine {
006 private final String name;
007 private Combine(String name) {
008 this.name = name;
009 }
010 final public String toString() {
011 return name;
012 }
013 }
014
015 static final Combine COMBINE_CHOICE = new Combine("choice");
016 static final Combine COMBINE_INTERLEAVE = new Combine("interleave");
017
018 static final String START = new String("#start");
019
020 void define(String name, Combine combine, ParsedPattern pattern, Location loc, Annotations anno)
021 throws BuildException;
022 void topLevelAnnotation(ParsedElementAnnotation ea) throws BuildException;
023 void topLevelComment(CommentList comments) throws BuildException;
024 Div makeDiv();
025 /**
026 * Returns null if already in an include.
027 */
028 Include makeInclude();
029 }