1 19 20 package org.netbeans.modules.websvc.registry.model; 21 22 import com.sun.xml.rpc.processor.model.Port; 23 import com.sun.xml.rpc.processor.model.Operation; 24 import com.sun.xml.rpc.processor.model.java.JavaMethod; 25 26 import java.util.ArrayList ; 27 import java.util.Iterator ; 28 29 35 public class WSPort { 36 37 private String name; 38 private String address; 39 private String javaInterfaceName; 40 private ArrayList methods = new ArrayList (); 41 42 43 44 public WSPort() { 45 } 46 47 public WSPort(Port inPort) { 48 if(null == inPort) return; 49 this.address = inPort.getAddress(); 50 this.javaInterfaceName = inPort.getJavaInterface().getRealName(); 51 this.name = inPort.getName().getLocalPart(); 52 Iterator opIter = inPort.getOperations(); 53 while(opIter.hasNext()){ 54 JavaMethod javaMethod = (JavaMethod)((Operation)opIter.next()).getJavaMethod(); 55 this.addMethod(javaMethod); 56 } 57 58 } 59 60 64 public java.lang.String getName() { 65 return name; 66 } 67 68 72 public void setName(java.lang.String name) { 73 this.name = name; 74 } 75 76 80 public java.lang.String getAddress() { 81 return address; 82 } 83 84 88 public void setAddress(java.lang.String address) { 89 this.address = address; 90 } 91 92 96 public java.lang.String getJavaInterfaceName() { 97 return javaInterfaceName; 98 } 99 100 104 public void setJavaInterfaceName(java.lang.String javaInterfaceName) { 105 this.javaInterfaceName = javaInterfaceName; 106 } 107 108 public void addMethod(JavaMethod inMethod) { 109 methods.add(inMethod); 110 } 111 115 public java.util.ArrayList getMethods() { 116 return methods; 117 } 118 119 123 public void setMethods(java.util.ArrayList methods) { 124 this.methods = methods; 125 } 126 127 } 128 | Popular Tags |