1 27 package org.objectweb.jonas_ws.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 31 36 37 public class JonasPortComponent extends AbsElement { 38 39 42 private String portComponentName = null; 43 44 47 private String endpointURI = null; 48 49 52 public JonasPortComponent() { 53 super(); 54 } 55 56 59 public String getEndpointURI() { 60 return endpointURI; 61 } 62 63 66 public void setEndpointURI(String endpointURI) { 67 this.endpointURI = endpointURI; 68 } 69 70 73 public String getPortComponentName() { 74 return portComponentName; 75 } 76 77 80 public void setPortComponentName(String portComponentName) { 81 this.portComponentName = portComponentName; 82 } 83 84 89 public String toXML(int indent) { 90 StringBuffer sb = new StringBuffer (); 91 sb.append(indent(indent)); 92 sb.append("<jonas-port-component>\n"); 93 94 indent += 2; 95 sb.append(xmlElement(portComponentName, "port-component-name", indent)); 97 sb.append(xmlElement(endpointURI, "endpoint-uri", indent)); 99 indent -= 2; 100 101 sb.append(indent(indent)); 102 sb.append("</jonas-port-component>\n"); 103 104 return sb.toString(); 105 } 106 } 107 | Popular Tags |