本文整理汇总了Java中com.sun.tools.internal.xjc.util.CodeModelClassFactory类的典型用法代码示例。如果您正苦于以下问题:Java CodeModelClassFactory类的具体用法?Java CodeModelClassFactory怎么用?Java CodeModelClassFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CodeModelClassFactory类属于com.sun.tools.internal.xjc.util包,在下文中一共展示了CodeModelClassFactory类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: build
import com.sun.tools.internal.xjc.util.CodeModelClassFactory; //导入依赖的package包/类
/**
* Entry point.
*/
public static Model build( XSSchemaSet _schemas, JCodeModel codeModel,
ErrorReceiver _errorReceiver, Options opts ) {
// set up a ring
final Ring old = Ring.begin();
try {
ErrorReceiverFilter ef = new ErrorReceiverFilter(_errorReceiver);
Ring.add(XSSchemaSet.class,_schemas);
Ring.add(codeModel);
Model model = new Model(opts, codeModel, null/*set later*/, opts.classNameAllocator, _schemas);
Ring.add(model);
Ring.add(ErrorReceiver.class,ef);
Ring.add(CodeModelClassFactory.class,new CodeModelClassFactory(ef));
BGMBuilder builder = new BGMBuilder(opts.defaultPackage,opts.defaultPackage2,
opts.isExtensionMode(),opts.getFieldRendererFactory(), opts.activePlugins);
builder._build();
if(ef.hadError()) return null;
else return model;
} finally {
Ring.end(old);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:BGMBuilder.java
示例2: TDTDReader
import com.sun.tools.internal.xjc.util.CodeModelClassFactory; //导入依赖的package包/类
protected TDTDReader(ErrorReceiver errorReceiver, Options opts, InputSource _bindInfo)
throws AbortException {
this.entityResolver = opts.entityResolver;
this.errorReceiver = new ErrorReceiverFilter(errorReceiver);
bindInfo = new BindInfo(model,_bindInfo, this.errorReceiver);
classFactory = new CodeModelClassFactory(errorReceiver);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:TDTDReader.java
示例3: getClassFactory
import com.sun.tools.internal.xjc.util.CodeModelClassFactory; //导入依赖的package包/类
public CodeModelClassFactory getClassFactory() {
return codeModelClassFactory;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:BeanGenerator.java
示例4: getClassFactory
import com.sun.tools.internal.xjc.util.CodeModelClassFactory; //导入依赖的package包/类
/**
* Gets a reference to
* <code>new CodeModelClassFactory(getErrorHandler())</code>.
*/
CodeModelClassFactory getClassFactory();
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:Outline.java
注:本文中的com.sun.tools.internal.xjc.util.CodeModelClassFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论