String tagName =
DOMUtils.getQualifiedValue(Constants.NS_URI_WSDL20,
Constants.ELEM_IMPORT,
des);
for(int ind=0;ind<imports.length;ind++){
ImportElement importEle = imports[ind];
if (importEle!=null){
pw.print(" <" + tagName);
String namespace = importEle.getNamespace().toString();
if (namespace != null){
DOMUtils.printAttribute(Constants.ATTR_NAMESPACE,
namespace,
pw);
}
String location = importEle.getLocation().toString();
if (location != null){
DOMUtils.printAttribute(Constants.ATTR_LOCATION,
location,
pw);
}
printExtensibilityAttributes(importEle.getExtensionAttributes(), importEle, pw);
pw.println('>');
printDocumentation(importEle.getDocumentationElements(), des, pw);
printExtensibilityElements(importEle.getClass(), importEle.getExtensionElements(), des, pw);
pw.println(" </" + tagName + '>');
}
}
}