1 22 package org.jboss.resource.metadata; 23 24 import java.io.Serializable ; 25 import java.util.Locale ; 26 27 33 public class DescriptionGroupMetaData implements Serializable 34 { 35 static final long serialVersionUID = 1324619949051028127L; 36 37 38 private String lang; 39 40 41 private String description; 42 43 44 private String displayName; 45 46 47 private String smallIcon; 48 49 50 private String largeIcon; 51 52 55 public DescriptionGroupMetaData() 56 { 57 this(null); 58 } 59 60 65 public DescriptionGroupMetaData(String lang) 66 { 67 if (lang == null) 68 this.lang = Locale.getDefault().getLanguage(); 69 else 70 this.lang = lang; 71 } 72 73 78 public String getLanguage() 79 { 80 return lang; 81 } 82 83 88 public String getDescription() 89 { 90 return description; 91 } 92 93 98 public void setDescription(String description) 99 { 100 this.description = description; 101 } 102 103 108 public String getDisplayName() 109 { 110 return displayName; 111 } 112 113 118 public void setDisplayName(String displayName) 119 { 120 this.displayName = displayName; 121 } 122 123 128 public String getSmallIcon() 129 { 130 return smallIcon; 131 } 132 133 138 public void setSmallIcon(String icon) 139 { 140 this.smallIcon = icon; 141 } 142 143 148 public String getLargeIcon() 149 { 150 return largeIcon; 151 } 152 153 158 public void setLargeIcon(String icon) 159 { 160 this.largeIcon = icon; 161 } 162 163 public String toString() 164 { 165 StringBuffer buffer = new StringBuffer (); 166 buffer.append("DescriptionGroupMetaData").append('@'); 167 buffer.append(Integer.toHexString(System.identityHashCode(this))); 168 buffer.append("[language=").append(lang); 169 if (description != null) 170 buffer.append(" description=").append(description); 171 if (displayName != null) 172 buffer.append(" displayName=").append(displayName); 173 if (smallIcon != null) 174 buffer.append(" smallIcon=").append(smallIcon); 175 if (largeIcon != null) 176 buffer.append(" largeIcon=").append(largeIcon); 177 buffer.append(']'); 178 return buffer.toString(); 179 } 180 } 181 | Popular Tags |