1 19 20 package org.netbeans.modules.web.monitor.data; 21 22 import org.w3c.dom.*; 23 import org.netbeans.modules.schema2beans.*; 24 import java.beans.*; 25 import java.util.*; 26 27 public class Param extends BaseBean { 28 29 static Vector comparators = new Vector(); 30 31 32 public Param() { 33 this(Common.USE_DEFAULT_VALUES); 34 } 35 36 public Param(String name, String value) { 37 super(Param.comparators, new org.netbeans.modules.schema2beans.Version(1, 0, 6)); 38 setAttributeValue("name", name); setAttributeValue("value", value); } 41 42 public Param(int options) { 43 super(Param.comparators, new org.netbeans.modules.schema2beans.Version(1, 0, 6)); 44 this.initialize(options); 46 } 47 48 49 public String getName() { 50 return getAttributeValue("name"); } 52 public void setName(String value) { 53 setAttributeValue("name", value); } 55 56 public String getValue() { 57 return getAttributeValue("value"); } 59 public void setValue(String value) { 60 setAttributeValue("value", value); } 62 63 64 void initialize(int options) { 66 67 } 68 69 public boolean verify() { 71 return true; 72 } 73 74 static public void addComparator(BeanComparator c) { 76 Param.comparators.add(c); 77 } 78 79 static public void removeComparator(BeanComparator c) { 81 Param.comparators.remove(c); 82 } 83 public void addPropertyChangeListener(PropertyChangeListener l) { 85 BeanProp p = this.beanProp(); 86 if (p != null) 87 p.addPCListener(l); 88 } 89 90 public void removePropertyChangeListener(PropertyChangeListener l) { 92 BeanProp p = this.beanProp(); 93 if (p != null) 94 p.removePCListener(l); 95 } 96 97 public void addPropertyChangeListener(String n, PropertyChangeListener l) { 99 BeanProp p = this.beanProp(n); 100 if (p != null) 101 p.addPCListener(l); 102 } 103 104 public void removePropertyChangeListener(String n, 106 PropertyChangeListener l) { 107 BeanProp p = this.beanProp(n); 108 if (p != null) 109 p.removePCListener(l); 110 } 111 112 public void dump(StringBuffer str, String indent) { 114 String s; 115 BaseBean n; 116 } 117 118 public String dumpBeanNode() { 119 StringBuffer str = new StringBuffer (); 120 str.append("Param\n"); this.dump(str, "\n "); return str.toString(); 123 } 124 } 125 126 | Popular Tags |