1 20 21 package com.sun.enterprise.tools.common.dd.webservice; 22 23 import org.w3c.dom.*; 24 import org.netbeans.modules.schema2beans.*; 25 import java.beans.*; 26 import java.util.*; 27 28 30 public class IconType extends org.netbeans.modules.schema2beans.BaseBean 31 { 32 33 static Vector comparators = new Vector(); 34 35 static public final String SMALL_ICON = "SmallIcon"; static public final String LARGE_ICON = "LargeIcon"; 38 public IconType() { 39 this(Common.USE_DEFAULT_VALUES); 40 } 41 42 public IconType(int options) 43 { 44 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); 45 this.createProperty("small-icon", SMALL_ICON, 48 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 49 java.lang.String .class); 50 this.createProperty("large-icon", LARGE_ICON, 52 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 53 java.lang.String .class); 54 this.initialize(options); 55 } 56 57 void initialize(int options) 59 { 60 61 } 62 63 public void setSmallIcon(java.lang.String value) { 65 this.setValue(SMALL_ICON, value); 66 } 67 68 public java.lang.String getSmallIcon() { 70 return (java.lang.String )this.getValue(SMALL_ICON); 71 } 72 73 public void setLargeIcon(java.lang.String value) { 75 this.setValue(LARGE_ICON, value); 76 } 77 78 public java.lang.String getLargeIcon() { 80 return (java.lang.String )this.getValue(LARGE_ICON); 81 } 82 83 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 85 comparators.add(c); 86 } 87 88 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 90 comparators.remove(c); 91 } 92 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 93 } 94 95 public void dump(StringBuffer str, String indent){ 97 String s; 98 Object o; 99 org.netbeans.modules.schema2beans.BaseBean n; 100 str.append(indent); 101 str.append("SmallIcon"); str.append(indent+"\t"); str.append("<"); s = this.getSmallIcon(); 105 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(SMALL_ICON, 0, str, indent); 108 109 str.append(indent); 110 str.append("LargeIcon"); str.append(indent+"\t"); str.append("<"); s = this.getLargeIcon(); 114 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(LARGE_ICON, 0, str, indent); 117 118 } 119 public String dumpBeanNode(){ 120 StringBuffer str = new StringBuffer (); 121 str.append("IconType\n"); this.dump(str, "\n "); return str.toString(); 124 }} 125 126 128 129 151 | Popular Tags |