1 23 24 package com.sun.enterprise.deployment.util; 25 26 import java.util.HashSet ; 27 import java.util.Set ; 28 29 import com.sun.enterprise.deployment.ServiceReferenceDescriptor; 30 import com.sun.enterprise.deployment.WebService; 31 32 36 public class WsdlFileVisitor extends DefaultDOLVisitor { 37 38 private Set wsdlFileUris_; 39 40 public WsdlFileVisitor() { 41 wsdlFileUris_ = new HashSet (); 42 } 43 44 public Set getWsdlFileUris() { 45 return wsdlFileUris_; 46 } 47 48 public void accept(ServiceReferenceDescriptor serviceRef) { 49 if( serviceRef.hasWsdlFile() ) { 50 wsdlFileUris_.add(serviceRef.getWsdlFileUri()); 51 } 52 } 53 54 public void accept(WebService webService) { 55 wsdlFileUris_.add(webService.getWsdlFileUri()); 56 } 57 58 } 59 | Popular Tags |