1 package test.javabean; 2 3 23 public class SimpleBean { 24 25 protected int count = 0; 26 27 protected boolean flag = false; 28 29 protected String name = ""; 30 31 protected Class parent = null; 32 33 34 public SimpleBean() { 35 } 36 37 45 public void myFirstMethod() { 46 } 47 48 69 public void mySecondMethod(String param1, boolean param2) { 70 } 71 74 public boolean isFlag() { 75 return flag; 76 } 77 78 public void setFlag(boolean flag) { 79 this.flag = flag; 80 } 81 82 83 public String getName() { 84 return name; 85 } 86 89 public void setName(String name) { 90 this.name = name; 91 } 92 93 97 public int getCount() { 98 return count; 99 } 100 104 public Class getParent() { 105 return parent; 106 } 107 } | Popular Tags |