本文整理汇总了Java中com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIGlobalBinding类的典型用法代码示例。如果您正苦于以下问题:Java BIGlobalBinding类的具体用法?Java BIGlobalBinding怎么用?Java BIGlobalBinding使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BIGlobalBinding类属于com.sun.tools.internal.xjc.reader.xmlschema.bindinfo包,在下文中一共展示了BIGlobalBinding类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: toElementRef
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIGlobalBinding; //导入依赖的package包/类
/**
* The whole type set can be later bound to a reference property,
* in which case we need to generate additional code to wrap this
* type reference into an element class.
*
* This method generates such an element class and returns it.
*/
protected void toElementRef(CReferencePropertyInfo prop) {
CClassInfo scope = Ring.get(ClassSelector.class).getCurrentBean();
Model model = Ring.get(Model.class);
CCustomizations custs = Ring.get(BGMBuilder.class).getBindInfo(decl).toCustomizationList();
if(target instanceof CClassInfo && Ring.get(BIGlobalBinding.class).isSimpleMode()) {
CClassInfo bean = new CClassInfo(model,scope,
model.getNameConverter().toClassName(decl.getName()),
decl.getLocator(), null, BGMBuilder.getName(decl), decl,
custs);
bean.setBaseClass((CClassInfo)target);
prop.getElements().add(bean);
} else {
CElementInfo e = new CElementInfo(model,BGMBuilder.getName(decl),scope,target,
decl.getDefaultValue(), decl, custs, decl.getLocator());
prop.getElements().add(e);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:RawTypeSetBuilder.java
示例2: getGlobalBinding
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIGlobalBinding; //导入依赖的package包/类
private BIGlobalBinding getGlobalBinding() {
return builder.getGlobalBinding();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:DefaultClassBinder.java
示例3: getGlobalBinding
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIGlobalBinding; //导入依赖的package包/类
/**
* Gets the global bindings.
*/
public @NotNull BIGlobalBinding getGlobalBinding() { return globalBinding; }
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:BGMBuilder.java
注:本文中的com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIGlobalBinding类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论