Web.java

00001 
00027 package org.objectweb.jonas_ear.deployment.xml;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00036 public class Web extends AbsElement  {
00037 
00041     private String webUri = null;
00042 
00046     private String contextRoot = null;
00047 
00048 
00052     public Web() {
00053         super();
00054     }
00055 
00060     public String getWebUri() {
00061         return webUri;
00062     }
00063 
00068     public void setWebUri(String webUri) {
00069         this.webUri = webUri;
00070     }
00071 
00076     public String getContextRoot() {
00077         return contextRoot;
00078     }
00079 
00084     public void setContextRoot(String contextRoot) {
00085         this.contextRoot = contextRoot;
00086     }
00087 
00093     public String toXML(int indent) {
00094         StringBuffer sb = new StringBuffer();
00095         sb.append(indent(indent));
00096         sb.append("<web>\n");
00097 
00098         indent += 2;
00099 
00100         // web-uri
00101         sb.append(xmlElement(webUri, "web-uri", indent));
00102         // context-root
00103         sb.append(xmlElement(contextRoot, "context-root", indent));
00104         indent -= 2;
00105         sb.append(indent(indent));
00106         sb.append("</web>\n");
00107 
00108         return sb.toString();
00109     }
00110 }

Generated on Tue Feb 15 15:05:36 2005 for JOnAS by  doxygen 1.3.9.1