01: package org.kohsuke.rngom.parse.host;
02:
03: import org.kohsuke.rngom.ast.builder.Annotations;
04: import org.kohsuke.rngom.ast.builder.BuildException;
05: import org.kohsuke.rngom.ast.builder.Include;
06: import org.kohsuke.rngom.ast.om.Location;
07: import org.kohsuke.rngom.parse.IllegalSchemaException;
08: import org.kohsuke.rngom.parse.Parseable;
09:
10: /**
11: *
12: * @author
13: * Kohsuke Kawaguchi (kk@kohsuke.org)
14: */
15: public class IncludeHost extends GrammarSectionHost implements Include {
16:
17: private final Include lhs;
18: private final Include rhs;
19:
20: IncludeHost(Include lhs, Include rhs) {
21: super (lhs, rhs);
22: this .lhs = lhs;
23: this .rhs = rhs;
24: }
25:
26: public void endInclude(Parseable current, String uri, String ns,
27: Location _loc, Annotations _anno) throws BuildException,
28: IllegalSchemaException {
29: LocationHost loc = cast(_loc);
30: AnnotationsHost anno = cast(_anno);
31:
32: lhs.endInclude(current, uri, ns, loc.lhs, anno.lhs);
33: rhs.endInclude(current, uri, ns, loc.rhs, anno.rhs);
34: }
35: }
|