00001
00027 package org.objectweb.jonas_lib.deployment.xml;
00028
00033 public class Icon extends AbsElement {
00034
00038 private String smallIcon = null;
00039
00043 private String largeIcon = null;
00044
00045
00046
00047
00052 public void setSmallIcon(String smallIcon) {
00053 this.smallIcon = smallIcon;
00054 }
00055
00056
00061 public void setLargeIcon(String largeIcon) {
00062 this.largeIcon = largeIcon;
00063 }
00064
00065
00066
00067
00068
00069
00073 public String getSmallIcon() {
00074 return smallIcon;
00075 }
00076
00077
00081 public String getLargeIcon() {
00082 return largeIcon;
00083 }
00084
00085
00091 public String toXML(int indent) {
00092 StringBuffer sb = new StringBuffer();
00093 sb.append(indent(indent));
00094 sb.append("<icon>\n");
00095
00096 indent += 2;
00097
00098
00099 sb.append(xmlElement(smallIcon, "small-icon", indent));
00100
00101
00102 sb.append(xmlElement(largeIcon, "large-icon", indent));
00103
00104 indent -= 2;
00105 sb.append(indent(indent));
00106 sb.append("</icon>\n");
00107
00108 return sb.toString();
00109 }
00110
00111
00112 }