1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 31 36 37 public class Icon extends AbsElement { 38 39 42 private String smallIcon = null; 43 44 47 private String largeIcon = null; 48 49 50 53 public Icon() { 54 super(); 55 } 56 57 61 public String getSmallIcon() { 62 return smallIcon; 63 } 64 65 69 public void setSmallIcon(String smallIcon) { 70 this.smallIcon = smallIcon; 71 } 72 73 77 public String getLargeIcon() { 78 return largeIcon; 79 } 80 81 85 public void setLargeIcon(String largeIcon) { 86 this.largeIcon = largeIcon; 87 } 88 89 94 public String toXML(int indent) { 95 StringBuffer sb = new StringBuffer (); 96 sb.append(indent(indent)); 97 sb.append("<icon>\n"); 98 99 indent += 2; 100 101 sb.append(xmlElement(smallIcon, "small-icon", indent)); 103 sb.append(xmlElement(largeIcon, "large-icon", indent)); 105 indent -= 2; 106 sb.append(indent(indent)); 107 sb.append("</icon>\n"); 108 109 return sb.toString(); 110 } 111 } 112 | Popular Tags |