javax.wsdl.extensions.schema.Schema.getIncludes()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中javax.wsdl.extensions.schema.Schema.getIncludes()方法的一些代码示例,展示了Schema.getIncludes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Schema.getIncludes()方法的具体详情如下:
包路径:javax.wsdl.extensions.schema.Schema
类名称:Schema
方法名:getIncludes

Schema.getIncludes介绍

[英]Get a list containing all of the includes defined here. The list elements are schema references.
[中]获取包含此处定义的所有包含项的列表。列表元素是模式引用。

代码示例

代码示例来源:origin: wsdl4j/wsdl4j

allSchemaRefs.addAll(schema.getIncludes());
allSchemaRefs.addAll(schema.getRedefines());

代码示例来源:origin: com.consol.citrus/citrus-core

/**
 * Recursively add all included schemas as schema resource.
 */
protected void addIncludedSchemas(Schema schema) throws WSDLException, IOException, TransformerException, TransformerFactoryConfigurationError {
  List<SchemaReference> includes = schema.getIncludes();
  for (SchemaReference schemaReference : includes) {
    String schemaLocation;
    URI locationURI = URI.create(schemaReference.getSchemaLocationURI());
    if (locationURI.isAbsolute()) {
      schemaLocation = schemaReference.getSchemaLocationURI();
    } else {
      schemaLocation = schema.getDocumentBaseURI().substring(0, schema.getDocumentBaseURI().lastIndexOf('/') + 1) + schemaReference.getSchemaLocationURI();
    }
    schemaResources.add(new FileSystemResource(schemaLocation));
  }
}

代码示例来源:origin: org.mule.modules/mule-module-ws

Collection<SchemaReference> schemaIncludesCollection = schema.getIncludes();

代码示例来源:origin: org.apache.servicemix/servicemix-http

private void mapSchema(Schema schema, String contextPath) {
  Map schemaImports = schema.getImports();
  for (Iterator iter = schemaImports.values().iterator(); iter.hasNext();) {
    List imps = (List) iter.next();
    for (Iterator iterator = imps.iterator(); iterator.hasNext();) {
      SchemaImport schemaImport = (SchemaImport) iterator.next();
      Schema schemaImp = schemaImport.getReferencedSchema();
      String schemaLoc = schemaImport.getSchemaLocationURI();
      if (schemaLoc != null && schemaImp != null && schemaImp.getElement() != null && !URI.create(schemaLoc).isAbsolute()) {
        schemaLoc = resolveRelativeURI(contextPath, schemaLoc);
        addResource(schemaLoc, schemaImp.getElement());
        // recursively map imported schemas
        mapSchema(schemaImp, getURIParent(schemaLoc));
      }
    }
  }
  List schemaIncludes = schema.getIncludes();
  for (Iterator iter = schemaIncludes.iterator(); iter.hasNext();) {
    SchemaReference schemaInclude = (SchemaReference) iter.next();
    Schema schemaImp = schemaInclude.getReferencedSchema();
    String schemaLoc = schemaInclude.getSchemaLocationURI();
    if (schemaLoc != null && schemaImp != null && schemaImp.getElement() != null && !URI.create(schemaLoc).isAbsolute()) {
      schemaLoc = resolveRelativeURI(contextPath, schemaLoc);
      addResource(schemaLoc, schemaImp.getElement());
      // recursively map included schemas
      mapSchema(schemaImp, getURIParent(schemaLoc));
    }
  }
}

代码示例来源:origin: reficio/soap-ws

private void processSchema(Definition definition, Schema schema, String fileName, Map<String, String> changedSchemaLocations) {
  try {
    if (schema.getIncludes() != null) {
      for (Object o : schema.getIncludes()) {
        if (o instanceof SchemaReference) {
          SchemaReference ref = (SchemaReference) o;

代码示例来源:origin: org.ow2.orchestra/orchestra-utils

final Element includeElt = (Element) includeNl.item(i);
if (includeElt.hasAttribute("schemaLocation")) {
 for (final SchemaReference schemaReference : (List<SchemaReference>) schema.getIncludes()) {
  if (schemaReference.getSchemaLocationURI() != null
    && schemaReference.getSchemaLocationURI().equals(includeElt.getAttribute("schemaLocation"))) {

代码示例来源:origin: org.apache.servicemix/servicemix-cxf-se

List<SchemaReference> includes = CastUtils.cast(schema.getIncludes());
if (includes != null && includes.size() > 0) {
  String includeNamespace = schema.getElement().getAttribute("targetNamespace");

代码示例来源:origin: apache/cxf

protected void updateSchemaImports(Bus bus,
                  Schema schema,
                  String docBase,
                  Map<String, SchemaReference> doneSchemas,
                  String base,
                  String parentResolved) {
  Collection<List<?>>  imports = CastUtils.cast((Collection<?>)schema.getImports().values());
  for (List<?> lst : imports) {
    List<SchemaImport> impLst = CastUtils.cast(lst);
    for (SchemaImport imp : impLst) {
      processSchemaReference(imp, bus, schema, docBase, doneSchemas, base, parentResolved);
    }
  }
  List<SchemaReference> includes = CastUtils.cast(schema.getIncludes());
  for (SchemaReference included : includes) {
    processSchemaReference(included, bus, schema, docBase, doneSchemas, base, parentResolved);
  }
  List<SchemaReference> redefines = CastUtils.cast(schema.getRedefines());
  for (SchemaReference included : redefines) {
    processSchemaReference(included, bus, schema, docBase, doneSchemas, base, parentResolved);
  }
}

代码示例来源:origin: org.apache.servicemix/servicemix-cxf-bc

List<SchemaReference> includes = CastUtils.cast(schema.getIncludes());
if (includes != null && includes.size() > 0) {
  String includeNamespace = schema.getElement().getAttribute("targetNamespace");

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-simple

protected void updateSchemaImports(Bus bus,
                  Schema schema,
                  String docBase,
                  Map<String, SchemaReference> doneSchemas,
                  String base,
                  String parentResolved) {
  Collection<List<?>>  imports = CastUtils.cast((Collection<?>)schema.getImports().values());
  for (List<?> lst : imports) {
    List<SchemaImport> impLst = CastUtils.cast(lst);
    for (SchemaImport imp : impLst) {
      processSchemaReference(imp, bus, schema, docBase, doneSchemas, base, parentResolved);
    }
  }
  List<SchemaReference> includes = CastUtils.cast(schema.getIncludes());
  for (SchemaReference included : includes) {
    processSchemaReference(included, bus, schema, docBase, doneSchemas, base, parentResolved);
  }
  List<SchemaReference> redefines = CastUtils.cast(schema.getRedefines());
  for (SchemaReference included : redefines) {
    processSchemaReference(included, bus, schema, docBase, doneSchemas, base, parentResolved);
  }
}

代码示例来源:origin: org.mule.modules/mule-module-cxf

List<SchemaReference> includes = CastUtils.cast(schema.getIncludes());
for (SchemaReference included : includes) {
  String start = included.getSchemaLocationURI();

代码示例来源:origin: org.jboss.ws.native/jbossws-native-core

allSchemaRefs.addAll(schema.getIncludes());
allSchemaRefs.addAll(schema.getRedefines());

代码示例来源:origin: org.wso2.wsdl4j/wsdl4j

allSchemaRefs.addAll(schema.getIncludes());
allSchemaRefs.addAll(schema.getRedefines());

相关文章