- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.setDocument()
方法的一些代码示例,展示了XSDefinition.setDocument()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDefinition.setDocument()
方法的具体详情如下:
包路径:org.apache.tuscany.sca.xsd.XSDefinition
类名称:XSDefinition
方法名:setDocument
[英]Set the DOM representation of the XSD
[中]设置XSD的DOM表示形式
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
private void generateSchemas(List<XSDefinition> definitions, XSDFactory factory, JAXBContext context)
throws IOException {
DOMResolverImpl resolver = new DOMResolverImpl();
context.generateSchema(resolver);
Map<String, DOMResult> results = resolver.getResults();
for (Map.Entry<String, DOMResult> entry : results.entrySet()) {
XSDefinition definition = factory.createXSDefinition();
definition.setUnresolved(true);
definition.setDocument((Document)entry.getValue().getNode());
definition.setNamespace(entry.getKey());
URI location = null;
try {
location = new URI(entry.getValue().getSystemId());
} catch (URISyntaxException e) {
// ignore: use null value
}
definition.setLocation(location);
definitions.add(definition);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-databinding-jaxb
private void generateSchemas(List<XSDefinition> definitions, XSDFactory factory, JAXBContext context)
throws IOException {
DOMResolverImpl resolver = new DOMResolverImpl();
context.generateSchema(resolver);
Map<String, DOMResult> results = resolver.getResults();
for (Map.Entry<String, DOMResult> entry : results.entrySet()) {
XSDefinition definition = factory.createXSDefinition();
definition.setUnresolved(true);
definition.setDocument((Document)entry.getValue().getNode());
definition.setNamespace(entry.getKey());
URI location = null;
try {
location = new URI(entry.getValue().getSystemId());
} catch (URISyntaxException e) {
// ignore: use null value
}
definition.setLocation(location);
definitions.add(definition);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen
xsDef.setDocument(doc);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
xsDef.setDocument(doc);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-xsd
if (index != -1) { // a matching (not identical) document was found
modelXSD = list.get(index);
modelXSD.setDocument(definition.getDocument());
代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen
xsDef.setUnresolved(true);
xsDef.setNamespace(targetNS);
xsDef.setDocument(schemaDoc);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
if (index != -1) { // a matching (not identical) document was found
modelXSD = list.get(index);
modelXSD.setDocument(definition.getDocument());
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
xsDef.setUnresolved(true);
xsDef.setNamespace(targetNS);
xsDef.setDocument(schemaDoc);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-wsdl
xsDefinition.setUnresolved(true);
xsDefinition.setNamespace(element.getAttribute("targetNamespace"));
xsDefinition.setDocument(doc);
xsDefinition.setLocation(URI.create(doc.getDocumentURI() + "#" + index));
XSDefinition resolved =
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
xsDefinition.setUnresolved(true);
xsDefinition.setNamespace(element.getAttribute("targetNamespace"));
xsDefinition.setDocument(doc);
xsDefinition.setLocation(URI.create(doc.getDocumentURI() + "#" + index));
XSDefinition resolved =
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
xsDefinition.setUnresolved(true);
xsDefinition.setNamespace(element.getAttribute("targetNamespace"));
xsDefinition.setDocument(element.getOwnerDocument());
XmlSchema schema = schemaCollection.read(element, null);
xsDefinition.setSchema(schema);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
document = docs[docs.length-1];
document.setDocumentURI(xsDef.getLocation().toString());
xsDef.setDocument(document);
} catch (XmlSchemaException e) {
throw new RuntimeException(e);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen
document = docs[docs.length-1];
document.setDocumentURI(xsDef.getLocation().toString());
xsDef.setDocument(document);
} catch (XmlSchemaException e) {
throw new RuntimeException(e);
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.setSchemaCollection()方法的一些代码示例,展示了XSDefinition.set
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.isUnresolved()方法的一些代码示例,展示了XSDefinition.isUnresolv
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.getAggregatedDefinitions()方法的一些代码示例,展示了XSDefinitio
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.getNamespace()方法的一些代码示例,展示了XSDefinition.getNamespa
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.setSchema()方法的一些代码示例,展示了XSDefinition.setSchema()的具
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.setDocument()方法的一些代码示例,展示了XSDefinition.setDocument
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.getXmlSchemaType()方法的一些代码示例,展示了XSDefinition.getXml
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.getSchemaCollection()方法的一些代码示例,展示了XSDefinition.get
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.getDocument()方法的一些代码示例,展示了XSDefinition.getDocument
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.getLocation()方法的一些代码示例,展示了XSDefinition.getLocation
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.setLocation()方法的一些代码示例,展示了XSDefinition.setLocation
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.setAggregatedDefinitions()方法的一些代码示例,展示了XSDefinitio
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.getXmlSchemaElement()方法的一些代码示例,展示了XSDefinition.get
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.getSchema()方法的一些代码示例,展示了XSDefinition.getSchema()的具
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.setNamespace()方法的一些代码示例,展示了XSDefinition.setNamespa
本文整理了Java中org.apache.tuscany.sca.xsd.XSDefinition.setUnresolved()方法的一些代码示例,展示了XSDefinition.setUnreso
我是一名优秀的程序员,十分优秀!