Java Code Examples for com.sun.xml.internal.rngom.parse.Parseable#parseInclude()
The following examples show how to use
com.sun.xml.internal.rngom.parse.Parseable#parseInclude() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SchemaBuilderImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException { for (OpenIncludes inc = sb.openIncludes; inc != null; inc = inc.parent) { if (inc.uri.equals(uri)) { sb.error("recursive_include", uri, (Locator) loc); return; } } for (Override o = overrides; o != null; o = o.next) { o.replacementStatus = o.prp.getReplacementStatus(); o.prp.setReplacementStatus(RefPattern.REPLACEMENT_REQUIRE); } try { SchemaBuilderImpl isb = new SchemaBuilderImpl(ns, uri, sb); current.parseInclude(uri, isb, new GrammarImpl(isb, grammar), ns); for (Override o = overrides; o != null; o = o.next) { if (o.prp.getReplacementStatus() == RefPattern.REPLACEMENT_REQUIRE) { if (o.prp.getName() == null) { sb.error("missing_start_replacement", (Locator) loc); } else { sb.error("missing_define_replacement", o.prp.getName(), (Locator) loc); } } } } catch (IllegalSchemaException e) { sb.noteError(); } finally { for (Override o = overrides; o != null; o = o.next) { o.prp.setReplacementStatus(o.replacementStatus); } } }
Example 2
Source File: SchemaBuilderImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException { for (OpenIncludes inc = sb.openIncludes; inc != null; inc = inc.parent) { if (inc.uri.equals(uri)) { sb.error("recursive_include", uri, (Locator) loc); return; } } for (Override o = overrides; o != null; o = o.next) { o.replacementStatus = o.prp.getReplacementStatus(); o.prp.setReplacementStatus(RefPattern.REPLACEMENT_REQUIRE); } try { SchemaBuilderImpl isb = new SchemaBuilderImpl(ns, uri, sb); current.parseInclude(uri, isb, new GrammarImpl(isb, grammar), ns); for (Override o = overrides; o != null; o = o.next) { if (o.prp.getReplacementStatus() == RefPattern.REPLACEMENT_REQUIRE) { if (o.prp.getName() == null) { sb.error("missing_start_replacement", (Locator) loc); } else { sb.error("missing_define_replacement", o.prp.getName(), (Locator) loc); } } } } catch (IllegalSchemaException e) { sb.noteError(); } finally { for (Override o = overrides; o != null; o = o.next) { o.prp.setReplacementStatus(o.replacementStatus); } } }
Example 3
Source File: SchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException { for (OpenIncludes inc = sb.openIncludes; inc != null; inc = inc.parent) { if (inc.uri.equals(uri)) { sb.error("recursive_include", uri, (Locator) loc); return; } } for (Override o = overrides; o != null; o = o.next) { o.replacementStatus = o.prp.getReplacementStatus(); o.prp.setReplacementStatus(RefPattern.REPLACEMENT_REQUIRE); } try { SchemaBuilderImpl isb = new SchemaBuilderImpl(ns, uri, sb); current.parseInclude(uri, isb, new GrammarImpl(isb, grammar), ns); for (Override o = overrides; o != null; o = o.next) { if (o.prp.getReplacementStatus() == RefPattern.REPLACEMENT_REQUIRE) { if (o.prp.getName() == null) { sb.error("missing_start_replacement", (Locator) loc); } else { sb.error("missing_define_replacement", o.prp.getName(), (Locator) loc); } } } } catch (IllegalSchemaException e) { sb.noteError(); } finally { for (Override o = overrides; o != null; o = o.next) { o.prp.setReplacementStatus(o.replacementStatus); } } }
Example 4
Source File: SchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException { for (OpenIncludes inc = sb.openIncludes; inc != null; inc = inc.parent) { if (inc.uri.equals(uri)) { sb.error("recursive_include", uri, (Locator) loc); return; } } for (Override o = overrides; o != null; o = o.next) { o.replacementStatus = o.prp.getReplacementStatus(); o.prp.setReplacementStatus(RefPattern.REPLACEMENT_REQUIRE); } try { SchemaBuilderImpl isb = new SchemaBuilderImpl(ns, uri, sb); current.parseInclude(uri, isb, new GrammarImpl(isb, grammar), ns); for (Override o = overrides; o != null; o = o.next) { if (o.prp.getReplacementStatus() == RefPattern.REPLACEMENT_REQUIRE) { if (o.prp.getName() == null) { sb.error("missing_start_replacement", (Locator) loc); } else { sb.error("missing_define_replacement", o.prp.getName(), (Locator) loc); } } } } catch (IllegalSchemaException e) { sb.noteError(); } finally { for (Override o = overrides; o != null; o = o.next) { o.prp.setReplacementStatus(o.replacementStatus); } } }
Example 5
Source File: SchemaBuilderImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException { for (OpenIncludes inc = sb.openIncludes; inc != null; inc = inc.parent) { if (inc.uri.equals(uri)) { sb.error("recursive_include", uri, (Locator) loc); return; } } for (Override o = overrides; o != null; o = o.next) { o.replacementStatus = o.prp.getReplacementStatus(); o.prp.setReplacementStatus(RefPattern.REPLACEMENT_REQUIRE); } try { SchemaBuilderImpl isb = new SchemaBuilderImpl(ns, uri, sb); current.parseInclude(uri, isb, new GrammarImpl(isb, grammar), ns); for (Override o = overrides; o != null; o = o.next) { if (o.prp.getReplacementStatus() == RefPattern.REPLACEMENT_REQUIRE) { if (o.prp.getName() == null) { sb.error("missing_start_replacement", (Locator) loc); } else { sb.error("missing_define_replacement", o.prp.getName(), (Locator) loc); } } } } catch (IllegalSchemaException e) { sb.noteError(); } finally { for (Override o = overrides; o != null; o = o.next) { o.prp.setReplacementStatus(o.replacementStatus); } } }
Example 6
Source File: SchemaBuilderImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException { for (OpenIncludes inc = sb.openIncludes; inc != null; inc = inc.parent) { if (inc.uri.equals(uri)) { sb.error("recursive_include", uri, (Locator) loc); return; } } for (Override o = overrides; o != null; o = o.next) { o.replacementStatus = o.prp.getReplacementStatus(); o.prp.setReplacementStatus(RefPattern.REPLACEMENT_REQUIRE); } try { SchemaBuilderImpl isb = new SchemaBuilderImpl(ns, uri, sb); current.parseInclude(uri, isb, new GrammarImpl(isb, grammar), ns); for (Override o = overrides; o != null; o = o.next) { if (o.prp.getReplacementStatus() == RefPattern.REPLACEMENT_REQUIRE) { if (o.prp.getName() == null) { sb.error("missing_start_replacement", (Locator) loc); } else { sb.error("missing_define_replacement", o.prp.getName(), (Locator) loc); } } } } catch (IllegalSchemaException e) { sb.noteError(); } finally { for (Override o = overrides; o != null; o = o.next) { o.prp.setReplacementStatus(o.replacementStatus); } } }
Example 7
Source File: SchemaBuilderImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException { for (OpenIncludes inc = sb.openIncludes; inc != null; inc = inc.parent) { if (inc.uri.equals(uri)) { sb.error("recursive_include", uri, (Locator) loc); return; } } for (Override o = overrides; o != null; o = o.next) { o.replacementStatus = o.prp.getReplacementStatus(); o.prp.setReplacementStatus(RefPattern.REPLACEMENT_REQUIRE); } try { SchemaBuilderImpl isb = new SchemaBuilderImpl(ns, uri, sb); current.parseInclude(uri, isb, new GrammarImpl(isb, grammar), ns); for (Override o = overrides; o != null; o = o.next) { if (o.prp.getReplacementStatus() == RefPattern.REPLACEMENT_REQUIRE) { if (o.prp.getName() == null) { sb.error("missing_start_replacement", (Locator) loc); } else { sb.error("missing_define_replacement", o.prp.getName(), (Locator) loc); } } } } catch (IllegalSchemaException e) { sb.noteError(); } finally { for (Override o = overrides; o != null; o = o.next) { o.prp.setReplacementStatus(o.replacementStatus); } } }
Example 8
Source File: SchemaBuilderImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException { for (OpenIncludes inc = sb.openIncludes; inc != null; inc = inc.parent) { if (inc.uri.equals(uri)) { sb.error("recursive_include", uri, (Locator) loc); return; } } for (Override o = overrides; o != null; o = o.next) { o.replacementStatus = o.prp.getReplacementStatus(); o.prp.setReplacementStatus(RefPattern.REPLACEMENT_REQUIRE); } try { SchemaBuilderImpl isb = new SchemaBuilderImpl(ns, uri, sb); current.parseInclude(uri, isb, new GrammarImpl(isb, grammar), ns); for (Override o = overrides; o != null; o = o.next) { if (o.prp.getReplacementStatus() == RefPattern.REPLACEMENT_REQUIRE) { if (o.prp.getName() == null) { sb.error("missing_start_replacement", (Locator) loc); } else { sb.error("missing_define_replacement", o.prp.getName(), (Locator) loc); } } } } catch (IllegalSchemaException e) { sb.noteError(); } finally { for (Override o = overrides; o != null; o = o.next) { o.prp.setReplacementStatus(o.replacementStatus); } } }
Example 9
Source File: IncludeImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException, IllegalSchemaException { current.parseInclude(uri,sb,new IncludedGrammarImpl(grammar,parent,sb),ns); }
Example 10
Source File: IncludeImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException, IllegalSchemaException { current.parseInclude(uri,sb,new IncludedGrammarImpl(grammar,parent,sb),ns); }
Example 11
Source File: IncludeImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException, IllegalSchemaException { current.parseInclude(uri,sb,new IncludedGrammarImpl(grammar,parent,sb),ns); }
Example 12
Source File: IncludeImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException, IllegalSchemaException { current.parseInclude(uri,sb,new IncludedGrammarImpl(grammar,parent,sb),ns); }
Example 13
Source File: IncludeImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException, IllegalSchemaException { current.parseInclude(uri,sb,new IncludedGrammarImpl(grammar,parent,sb),ns); }
Example 14
Source File: IncludeImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException, IllegalSchemaException { current.parseInclude(uri,sb,new IncludedGrammarImpl(grammar,parent,sb),ns); }
Example 15
Source File: IncludeImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException, IllegalSchemaException { current.parseInclude(uri,sb,new IncludedGrammarImpl(grammar,parent,sb),ns); }
Example 16
Source File: IncludeImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public void endInclude(Parseable current, String uri, String ns, Location loc, Annotations anno) throws BuildException, IllegalSchemaException { current.parseInclude(uri,sb,new IncludedGrammarImpl(grammar,parent,sb),ns); }