org.codehaus.enunciate.config.WsdlInfo.lookupSchema()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(123)

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

WsdlInfo.lookupSchema介绍

[英]Convenience method to lookup a namespace schema given a namespace.
[中]查找给定名称空间的名称空间架构的便捷方法。

代码示例

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * Get the schema associated with this WSDL.
 *
 * @return The schema associated with this WSDL.
 */
public SchemaInfo getAssociatedSchema() {
 return lookupSchema(getTargetNamespace());
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * Get the schema associated with this WSDL.
 *
 * @return The schema associated with this WSDL.
 */
public SchemaInfo getAssociatedSchema() {
 return lookupSchema(getTargetNamespace());
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The list of imported schemas.
 *
 * @return The list of imported schemas.
 */
public List<SchemaInfo> getImportedSchemas() {
 Set<String> importedNamespaces = getImportedNamespaces();
 importedNamespaces.remove(getTargetNamespace()); //the "associated" schema is either inlined or included, but not imported.
 List<SchemaInfo> schemas = new ArrayList<SchemaInfo>();
 for (String ns : importedNamespaces) {
  SchemaInfo schema = lookupSchema(ns);
  if (schema != null) {
   schemas.add(schema);
  }
 }
 return schemas;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The list of imported schemas.
 *
 * @return The list of imported schemas.
 */
public List<SchemaInfo> getImportedSchemas() {
 Set<String> importedNamespaces = getImportedNamespaces();
 importedNamespaces.remove(getTargetNamespace()); //the "associated" schema is either inlined or included, but not imported.
 List<SchemaInfo> schemas = new ArrayList<SchemaInfo>();
 for (String ns : importedNamespaces) {
  SchemaInfo schema = lookupSchema(ns);
  if (schema != null) {
   schemas.add(schema);
  }
 }
 return schemas;
}

相关文章