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 PackageMapping extends AbsElement { 38 39 42 private String packageType = null; 43 44 47 private String namespaceURI = null; 48 49 50 53 public PackageMapping() { 54 super(); 55 } 56 57 61 public String getPackageType() { 62 return packageType; 63 } 64 65 69 public void setPackageType(String packageType) { 70 this.packageType = packageType; 71 } 72 73 77 public String getNamespaceURI() { 78 return namespaceURI; 79 } 80 81 85 public void setNamespaceURI(String namespaceURI) { 86 this.namespaceURI = namespaceURI; 87 } 88 89 94 public String toXML(int indent) { 95 StringBuffer sb = new StringBuffer (); 96 sb.append(indent(indent)); 97 sb.append("<package-mapping>\n"); 98 99 indent += 2; 100 101 sb.append(xmlElement(packageType, "package-type", indent)); 103 sb.append(xmlElement(namespaceURI, "namespaceURI", indent)); 105 indent -= 2; 106 sb.append(indent(indent)); 107 sb.append("</package-mapping>\n"); 108 109 return sb.toString(); 110 } 111 } 112 | Popular Tags |