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 import javax.servlet.http.Cookie ; 27 28 public class CookieIn extends BaseBean { 29 30 static Vector comparators = new Vector(); 31 32 33 public CookieIn() { 34 this(Common.USE_DEFAULT_VALUES); 35 } 36 37 public CookieIn(Cookie cookie) { 38 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 0, 5)); 39 this.setAttributeValue("name", cookie.getName()); this.setAttributeValue("value", cookie.getValue()); } 42 43 public CookieIn(String name, String value) { 44 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 0, 5)); 45 this.setAttributeValue("name", name); this.setAttributeValue("value", value); } 48 49 public CookieIn(int options) { 50 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 0, 6)); 51 this.initialize(options); 53 } 54 55 void initialize(int options) 57 { 58 59 } 60 61 public boolean verify() 63 { 64 return true; 65 } 66 67 68 72 public String getName() {return this.getAttributeValue("name");} 74 78 public void setName(String v) {this.setAttributeValue("name", v);} 80 81 85 public String getValue() {return this.getAttributeValue("value");} 87 91 public void setValue(String v) {this.setAttributeValue("value", v);} 93 static public void addComparator(BeanComparator c) 95 { 96 CookieIn.comparators.add(c); 97 } 98 99 static public void removeComparator(BeanComparator c) 101 { 102 CookieIn.comparators.remove(c); 103 } 104 public void addPropertyChangeListener(PropertyChangeListener l) 106 { 107 BeanProp p = this.beanProp(); 108 if (p != null) 109 p.addPCListener(l); 110 } 111 112 public void removePropertyChangeListener(PropertyChangeListener l) 114 { 115 BeanProp p = this.beanProp(); 116 if (p != null) 117 p.removePCListener(l); 118 } 119 120 public void addPropertyChangeListener(String n, PropertyChangeListener l) 122 { 123 BeanProp p = this.beanProp(n); 124 if (p != null) 125 p.addPCListener(l); 126 } 127 128 public void removePropertyChangeListener(String n, PropertyChangeListener l) 130 { 131 BeanProp p = this.beanProp(n); 132 if (p != null) 133 p.removePCListener(l); 134 } 135 136 public void dump(StringBuffer str, String indent) 138 { 139 String s; 140 BaseBean n; 141 } 142 143 public String dumpBeanNode() 144 { 145 StringBuffer str = new StringBuffer (); 146 str.append("CookieIn\n"); this.dump(str, "\n "); return str.toString(); 149 } 150 } 151 152 | Popular Tags |