本文整理汇总了Java中com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder类的典型用法代码示例。如果您正苦于以下问题:Java DataPatternBuilder类的具体用法?Java DataPatternBuilder怎么用?Java DataPatternBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataPatternBuilder类属于com.sun.xml.internal.rngom.ast.builder包,在下文中一共展示了DataPatternBuilder类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: makeDataPatternBuilder
import com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder; //导入依赖的package包/类
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
throws BuildException {
DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
if (dl == null) {
error("unrecognized_datatype_library", datatypeLibrary, (Locator) loc);
} else {
try {
return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
} catch (DatatypeException e) {
String detail = e.getMessage();
if (detail != null) {
error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator) loc);
} else {
error("unrecognized_datatype", datatypeLibrary, type, (Locator) loc);
}
}
}
return new DummyDataPatternBuilder();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:SchemaBuilderImpl.java
示例2: makeDataPatternBuilder
import com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder; //导入依赖的package包/类
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
throws BuildException {
DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
if (dl == null)
error("unrecognized_datatype_library", datatypeLibrary, (Locator)loc);
else {
try {
return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
}
catch (DatatypeException e) {
String detail = e.getMessage();
if (detail != null)
error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator)loc);
else
error("unrecognized_datatype", datatypeLibrary, type, (Locator)loc);
}
}
return new DummyDataPatternBuilder();
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:20,代码来源:SchemaBuilderImpl.java
示例3: Params
import com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder; //导入依赖的package包/类
final public void Params(DataPatternBuilder dpb) throws ParseException {
jj_consume_token(11);
label_18:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 1:
case 5:
case 6:
case 7:
case 10:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 26:
case 27:
case 31:
case 32:
case 33:
case 34:
case 35:
case 36:
case DOCUMENTATION:
case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
case IDENTIFIER:
case ESCAPED_IDENTIFIER:
;
break;
default:
jj_la1[53] = jj_gen;
break label_18;
}
Param(dpb);
}
jj_consume_token(12);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:40,代码来源:CompactSyntax.java
示例4: Param
import com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder; //导入依赖的package包/类
final public void Param(DataPatternBuilder dpb) throws ParseException {
LocatedString name;
Annotations a;
String value;
a = Annotations();
name = UnprefixedName();
jj_consume_token(2);
a = addCommentsToLeadingAnnotations(a);
value = Literal();
dpb.addParam(name.getString(), value, getContext(), defaultNamespace, name.getLocation(), a);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CompactSyntax.java
示例5: makeDataPatternBuilder
import com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder; //导入依赖的package包/类
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary,
String type, Location _loc) throws BuildException {
LocationHost loc = cast(_loc);
return new DataPatternBuilderHost(
lhs.makeDataPatternBuilder(datatypeLibrary, type, loc.lhs),
rhs.makeDataPatternBuilder(datatypeLibrary, type, loc.rhs) );
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:SchemaBuilderHost.java
示例6: makeDataPatternBuilder
import com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder; //导入依赖的package包/类
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, LocatorImpl loc) throws BuildException {
return new DataPatternBuilderImpl(datatypeLibrary,type,loc);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:DSchemaBuilderImpl.java
示例7: DataExpr
import com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder; //导入依赖的package包/类
final public ParsedPattern DataExpr(boolean topLevel, Scope scope, Annotations a, Token[] except) throws ParseException {
Token datatypeToken;
Location loc;
String datatype;
String datatypeUri = null;
String s = null;
ParsedPattern e = null;
DataPatternBuilder dpb;
datatypeToken = DatatypeName();
datatype = datatypeToken.image;
loc = makeLocation(datatypeToken);
int colon = datatype.indexOf(':');
if (colon < 0)
datatypeUri = "";
else {
String prefix = datatype.substring(0, colon);
datatypeUri = lookupDatatype(prefix, datatypeToken);
datatype = datatype.substring(colon + 1);
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LITERAL:
s = Literal();
if (topLevel && annotationsIncludeElements) {
error("top_level_follow_annotation", datatypeToken);
a = null;
}
{if (true) return sb.makeValue(datatypeUri, datatype, s, getContext(), defaultNamespace, loc, a);}
break;
default:
jj_la1[48] = jj_gen;
dpb = sb.makeDataPatternBuilder(datatypeUri, datatype, loc);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 11:
Params(dpb);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 30:
e = Except(scope, except);
break;
default:
jj_la1[45] = jj_gen;
;
}
break;
default:
jj_la1[47] = jj_gen;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 30:
e = Except(scope, except);
break;
default:
jj_la1[46] = jj_gen;
;
}
}
{if (true) return e == null ? dpb.makePattern(loc, a) : dpb.makePattern(e, loc, a);}
}
throw new Error("Missing return statement in function");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:59,代码来源:CompactSyntax.java
示例8: ParamState
import com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder; //导入依赖的package包/类
ParamState(DataPatternBuilder dpb) {
this.dpb = dpb;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:SchemaParser.java
示例9: DataPatternBuilderHost
import com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder; //导入依赖的package包/类
DataPatternBuilderHost( DataPatternBuilder lhs, DataPatternBuilder rhs ) {
this.lhs = lhs;
this.rhs = rhs;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:DataPatternBuilderHost.java
注:本文中的com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论