1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 30 34 public class PortComponentRef extends AbsElement { 35 36 39 private String serviceEndpointInterface = null; 40 41 44 private String portComponentLink = null; 45 46 47 49 50 54 public void setServiceEndpointInterface(String serviceEndpointInterface) { 55 this.serviceEndpointInterface = serviceEndpointInterface; 56 } 57 58 59 63 public void setPortComponentLink(String portComponentLink) { 64 this.portComponentLink = portComponentLink; 65 } 66 67 68 70 73 public String getServiceEndpointInterface() { 74 return serviceEndpointInterface; 75 } 76 77 80 public String getPortComponentLink() { 81 return portComponentLink; 82 } 83 84 85 90 public String toXML(int indent) { 91 StringBuffer sb = new StringBuffer (); 92 sb.append(indent(indent)); 93 sb.append("<port-component-ref>\n"); 94 95 indent += 2; 96 97 sb.append(xmlElement(serviceEndpointInterface, "service-endpoint-interface", indent)); 99 100 sb.append(xmlElement(portComponentLink, "port-component-link", indent)); 102 103 104 indent -= 2; 105 sb.append(indent(indent)); 106 sb.append("</port-component-ref>\n"); 107 108 return sb.toString(); 109 } 110 } 111 | Popular Tags |