本文整理汇总了Java中com.sun.xml.internal.rngom.parse.IllegalSchemaException类的典型用法代码示例。如果您正苦于以下问题:Java IllegalSchemaException类的具体用法?Java IllegalSchemaException怎么用?Java IllegalSchemaException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IllegalSchemaException类属于com.sun.xml.internal.rngom.parse包,在下文中一共展示了IllegalSchemaException类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: makeExternalRef
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
public ParsedPattern makeExternalRef(Parseable current, String uri, String ns, Scope scope,
Location loc, Annotations anno)
throws BuildException {
for (OpenIncludes inc = openIncludes;
inc != null;
inc = inc.parent) {
if (inc.uri.equals(uri)) {
error("recursive_include", uri, (Locator) loc);
return pb.makeError();
}
}
try {
return current.parseExternal(uri, new SchemaBuilderImpl(ns, uri, this), scope, ns);
} catch (IllegalSchemaException e) {
noteError();
return pb.makeError();
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:SchemaBuilderImpl.java
示例2: Include
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
final public void Include(GrammarSection section, Scope scope, Annotations a) throws ParseException {
Token t;
String href;
String ns;
Include include = section.makeInclude();
t = jj_consume_token(7);
href = Literal();
ns = Inherit();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 11:
jj_consume_token(11);
a = IncludeBody(include, scope, a);
topLevelComments(include);
jj_consume_token(12);
break;
default:
jj_la1[41] = jj_gen;
;
}
try {
include.endInclude(parseable, resolve(href), ns, makeLocation(t), a);
}
catch (IllegalSchemaException e) { }
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:25,代码来源:CompactSyntax.java
示例3: makeExternalRef
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
public ParsedPattern makeExternalRef(Parseable current, String uri, String ns, Scope scope,
Location loc, Annotations anno)
throws BuildException {
for (OpenIncludes inc = openIncludes;
inc != null;
inc = inc.parent) {
if (inc.uri.equals(uri)) {
error("recursive_include", uri, (Locator)loc);
return pb.makeError();
}
}
try {
return current.parseExternal(uri, new SchemaBuilderImpl(ns, uri, this), scope, ns );
}
catch (IllegalSchemaException e) {
noteError();
return pb.makeError();
}
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:20,代码来源:SchemaBuilderImpl.java
示例4: expandPattern
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
public ParsedPattern expandPattern(ParsedPattern p)
throws BuildException, IllegalSchemaException {
// just return the result from the user-given SchemaBuilder
ParsedPatternHost r = (ParsedPatternHost)super.expandPattern(p);
return r.rhs;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:CheckingSchemaBuilder.java
示例5: endInclude
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
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);
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:36,代码来源:SchemaBuilderImpl.java
示例6: ExternalRefExpr
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
final public ParsedPattern ExternalRefExpr(Scope scope, Annotations a) throws ParseException {
Token t;
String href;
String ns;
t = jj_consume_token(33);
href = Literal();
ns = Inherit();
try {
{if (true) return sb.makeExternalRef(parseable, resolve(href), ns, scope, makeLocation(t), a);}
}
catch (IllegalSchemaException e) {
{if (true) return sb.makeErrorPattern();}
}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:CompactSyntax.java
示例7: end
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
@Override
void end() throws SAXException {
super.end();
if (href != null) {
try {
include.endInclude(parseable, href, getNs(), startLocation, annotations);
} catch (IllegalSchemaException e) {
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:SchemaParser.java
示例8: makePattern
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
ParsedPattern makePattern() {
if (href != null) {
try {
return schemaBuilder.makeExternalRef(parseable,
href,
getNs(),
scope,
startLocation,
annotations);
} catch (IllegalSchemaException e) {
}
}
return schemaBuilder.makeErrorPattern();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:SchemaParser.java
示例9: makeExternalRef
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
public ParsedPattern makeExternalRef(Parseable current, String uri,
String ns, Scope _scope, Location _loc, Annotations _anno)
throws BuildException, IllegalSchemaException {
ScopeHost scope = (ScopeHost) _scope;
LocationHost loc = cast(_loc);
AnnotationsHost anno = cast(_anno);
return new ParsedPatternHost(
lhs.makeExternalRef(current, uri, ns, scope.lhs, loc.lhs, anno.lhs),
rhs.makeExternalRef(current, uri, ns, scope.rhs, loc.rhs, anno.rhs) );
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:SchemaBuilderHost.java
示例10: endInclude
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
public void endInclude(Parseable current, String uri, String ns, Location _loc, Annotations _anno) throws BuildException, IllegalSchemaException {
LocationHost loc = cast(_loc);
AnnotationsHost anno = cast(_anno);
lhs.endInclude( current, uri, ns, loc.lhs, anno.lhs );
rhs.endInclude( current, uri, ns, loc.rhs, anno.rhs );
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:IncludeHost.java
示例11: loadRELAXNG
import com.sun.xml.internal.rngom.parse.IllegalSchemaException; //导入依赖的package包/类
/**
* Common part between the XML syntax and the compact syntax.
*/
private Model loadRELAXNG(Parseable p) {
SchemaBuilder sb = new CheckingSchemaBuilder(new DSchemaBuilderImpl(),errorReceiver);
try {
DPattern out = (DPattern)p.parse(sb);
return RELAXNGCompiler.build(out,codeModel,opt);
} catch (IllegalSchemaException e) {
errorReceiver.error(e.getMessage(),e);
return null;
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:ModelLoader.java
注:本文中的com.sun.xml.internal.rngom.parse.IllegalSchemaException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论