Icon.java

00001 
00027 package org.objectweb.jonas_rar.deployment.xml;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00030 
00037 public class Icon extends AbsElement  {
00038 
00042     private String smallIcon = null;
00043 
00047     private String largeIcon = null;
00048 
00049 
00053     public Icon() {
00054         super();
00055     }
00056 
00061     public String getSmallIcon() {
00062         return smallIcon;
00063     }
00064 
00069     public void setSmallIcon(String smallIcon) {
00070         this.smallIcon = smallIcon;
00071     }
00072 
00077     public String getLargeIcon() {
00078         return largeIcon;
00079     }
00080 
00085     public void setLargeIcon(String largeIcon) {
00086         this.largeIcon = largeIcon;
00087     }
00088 
00094     public String toXML(int indent) {
00095         StringBuffer sb = new StringBuffer();
00096         sb.append(indent(indent));
00097         sb.append("<icon>\n");
00098 
00099         indent += 2;
00100 
00101         // small-icon
00102         sb.append(xmlElement(smallIcon, "small-icon", indent));
00103         // large-icon
00104         sb.append(xmlElement(largeIcon, "large-icon", indent));
00105         indent -= 2;
00106         sb.append(indent(indent));
00107         sb.append("</icon>\n");
00108 
00109         return sb.toString();
00110     }
00111 }

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