Java Code Examples for javax.wsdl.Definition#getImports()

The following examples show how to use javax.wsdl.Definition#getImports() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: cxf   File: WSDLRefValidator.java    License: Apache License 2.0 5 votes vote down vote up
private Collection<Import> getImports(final Definition wsdlDef) {
    Collection<Import> importList = new ArrayList<>();
    Map<?, ?> imports = wsdlDef.getImports();
    for (Map.Entry<?, ?> entry : imports.entrySet()) {
        List<Import> lst = CastUtils.cast((List<?>)entry.getValue());
        importList.addAll(lst);
    }

    return importList;
}
 
Example 2
Source Project: cxf   File: WSDLDefinitionBuilder.java    License: Apache License 2.0 5 votes vote down vote up
public static Collection<Import> getImports(final Definition wsdlDef) {
    Collection<Import> importList = new ArrayList<>();
    Map<?, ?> imports = wsdlDef.getImports();
    for (Map.Entry<?, ?> entry : imports.entrySet()) {
        List<Import> lst = CastUtils.cast((List<?>)entry.getValue());
        importList.addAll(lst);
    }
    return importList;
}
 
Example 3
Source Project: cxf   File: AbstractAegisTest.java    License: Apache License 2.0 5 votes vote down vote up
private Collection<Import> getImports(final Definition wsdlDef) {
    Collection<Import> importList = new ArrayList<>();
    Map<?, ?> imports = wsdlDef.getImports();
    for (Iterator<?> iter = imports.keySet().iterator(); iter.hasNext();) {
        String uri = (String)iter.next();
        List<Import> lst = CastUtils.cast((List<?>)imports.get(uri));
        importList.addAll(lst);
    }
    return importList;
}