1 7 package com.inversoft.verge.mvc.view.jsp.html.test; 8 9 10 19 public class Bean { 20 21 private String text; 22 private String value; 23 private Bean local; 24 25 26 29 public Bean() { 30 super(); 31 } 32 33 36 public Bean(String text, String value) { 37 this.text = text; 38 this.value = value; 39 this.local = new Bean(); 40 } 41 42 43 48 public Bean getLocal() { 49 return local; 50 } 51 52 57 public void setLocal(Bean local) { 58 this.local = local; 59 } 60 61 66 public String getText() { 67 return text; 68 } 69 70 75 public void setText(String text) { 76 this.text = text; 77 } 78 79 84 public String getValue() { 85 return value; 86 } 87 88 93 public void setValue(String value) { 94 this.value = value; 95 } 96 97 100 public boolean equals(Object bean) { 101 return ((Bean) bean).getValue().equals(value); 102 } 103 104 107 public String toString() { 108 return text; 109 } 110 } 111 | Popular Tags |