本文整理汇总了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);
}
}
示例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);
}
示例3: getClassFactory
import com.sun.tools.internal.xjc.util.CodeModelClassFactory; //导入依赖的package包/类
public CodeModelClassFactory getClassFactory() {
return codeModelClassFactory;
}
示例4: getClassFactory
import com.sun.tools.internal.xjc.util.CodeModelClassFactory; //导入依赖的package包/类
/**
* Gets a reference to
* <code>new CodeModelClassFactory(getErrorHandler())</code>.
*/
CodeModelClassFactory getClassFactory();