1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 30 31 35 public class JonasPortComponentRef extends AbsElement { 36 37 40 private String serviceEndpointInterface = null; 41 42 45 private Qname wsdlPort = null; 46 47 50 private JLinkedList jonasStubPropList = null; 51 52 55 private JLinkedList jonasCallPropList = null; 56 57 60 public JonasPortComponentRef() { 61 jonasStubPropList = new JLinkedList("jonas-stub-property"); 62 jonasCallPropList = new JLinkedList("jonas-call-property"); 63 } 64 65 66 68 69 73 public void setWsdlPort(Qname wsdlPort) { 74 this.wsdlPort = wsdlPort; 75 } 76 77 81 public void setServiceEndpointInterface(String serviceEndpointInterface) { 82 this.serviceEndpointInterface = serviceEndpointInterface; 83 } 84 85 89 public void addJonasCallProperty(JonasCallProperty jonasCallProperty) { 90 jonasCallPropList.add(jonasCallProperty); 91 } 92 93 97 public void addJonasStubProperty(JonasStubProperty jonasStubProperty) { 98 jonasStubPropList.add(jonasStubProperty); 99 } 100 101 102 104 107 public String getServiceEndpointInterface() { 108 return serviceEndpointInterface; 109 } 110 111 114 public Qname getWsdlPort() { 115 return wsdlPort; 116 } 117 118 121 public JLinkedList getJonasCallPropertyList() { 122 return jonasCallPropList; 123 } 124 125 128 public JLinkedList getJonasStubPropertyList() { 129 return jonasStubPropList; 130 } 131 132 133 138 public String toXML(int indent) { 139 StringBuffer sb = new StringBuffer (); 140 sb.append(indent(indent)); 141 sb.append("<jonas-port-component-ref>\n"); 142 143 indent += 2; 144 145 if (serviceEndpointInterface != null) { 147 sb.append(xmlElement(serviceEndpointInterface, "service-endpoint-interface", indent)); 148 } 149 150 if (wsdlPort != null) { 152 sb.append(wsdlPort.toXML(indent)); 153 } 154 155 sb.append(jonasStubPropList.toXML(indent)); 157 158 sb.append(jonasCallPropList.toXML(indent)); 160 161 indent -= 2; 162 sb.append(indent(indent)); 163 sb.append("</jonas-port-component-ref>\n"); 164 165 return sb.toString(); 166 } 167 } 168 | Popular Tags |