本文整理汇总了Java中com.sun.tools.internal.ws.wsdl.parser.DOMForestScanner类的典型用法代码示例。如果您正苦于以下问题:Java DOMForestScanner类的具体用法?Java DOMForestScanner怎么用?Java DOMForestScanner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DOMForestScanner类属于com.sun.tools.internal.ws.wsdl.parser包,在下文中一共展示了DOMForestScanner类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: internalBuildJAXBModel
import com.sun.tools.internal.ws.wsdl.parser.DOMForestScanner; //导入依赖的package包/类
/**
* Builds model from WSDL document. Model contains abstraction which is used by the
* generators to generate the stub/tie/serializers etc. code.
*
* @see com.sun.tools.internal.ws.processor.modeler.Modeler#buildModel()
*/
private void internalBuildJAXBModel(){
try {
schemaCompiler = options.getSchemaCompiler();
schemaCompiler.resetSchema();
if(options.entityResolver != null) {
//set if its not null so as not to override catalog option specified via xjc args
schemaCompiler.setEntityResolver(options.entityResolver);
}
schemaCompiler.setClassNameAllocator(_classNameAllocator);
schemaCompiler.setErrorListener(errReceiver);
int schemaElementCount = 1;
for (Element element : forest.getInlinedSchemaElement()) {
String location = element.getOwnerDocument().getDocumentURI();
String systemId = location + "#types?schema" + schemaElementCount++;
if(forest.isMexMetadata)
schemaCompiler.parseSchema(systemId,element);
else
new DOMForestScanner(forest).scan(element,schemaCompiler.getParserHandler(systemId));
}
//feed external jaxb:bindings file
InputSource[] externalBindings = options.getSchemaBindings();
if(externalBindings != null){
for(InputSource jaxbBinding : externalBindings){
schemaCompiler.parseSchema(jaxbBinding);
}
}
} catch (Exception e) {
throw new ModelException(e);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:40,代码来源:JAXBModelBuilder.java
注:本文中的com.sun.tools.internal.ws.wsdl.parser.DOMForestScanner类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论