• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java IllegalSchemaException类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Certificate类代码示例发布时间:2022-05-23
下一篇:
Java ConfigurationProvider类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap