| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
package jpype.properties; |
| 17 |
|
| 18 |
public class TestBean |
| 19 |
{ |
| 20 |
|
| 21 |
private String getA; |
| 22 |
|
| 23 |
private String setA; |
| 24 |
|
| 25 |
private String property1; |
| 26 |
|
| 27 |
private String property2Invisible; |
| 28 |
|
| 29 |
private String property3; |
| 30 |
|
| 31 |
public String property4; |
| 32 |
|
| 33 |
private String property5; |
| 34 |
|
| 35 |
private String property6; |
| 36 |
|
| 37 |
public String property7; |
| 38 |
|
| 39 |
public String getProperty1() |
| 40 |
{ |
| 41 |
return "get" + property1; |
| 42 |
} |
| 43 |
|
| 44 |
public String getProperty2() |
| 45 |
{ |
| 46 |
return "get" + property2Invisible; |
| 47 |
} |
| 48 |
|
| 49 |
public String getProperty3() |
| 50 |
{ |
| 51 |
return "get" + property3; |
| 52 |
} |
| 53 |
|
| 54 |
public String abcProperty4() |
| 55 |
{ |
| 56 |
return "abc" + property4; |
| 57 |
} |
| 58 |
|
| 59 |
public String getProperty6() |
| 60 |
{ |
| 61 |
return "get" + property7; |
| 62 |
} |
| 63 |
|
| 64 |
public String property1() |
| 65 |
{ |
| 66 |
return "method"; |
| 67 |
} |
| 68 |
|
| 69 |
protected String property2() |
| 70 |
{ |
| 71 |
return "method"; |
| 72 |
} |
| 73 |
|
| 74 |
protected String property3() |
| 75 |
{ |
| 76 |
return "method"; |
| 77 |
} |
| 78 |
|
| 79 |
public String returnProperty5() |
| 80 |
{ |
| 81 |
return "return" + this.property5; |
| 82 |
} |
| 83 |
|
| 84 |
public void setProperty1(String property1) |
| 85 |
{ |
| 86 |
this.property1 = "set" + property1; |
| 87 |
} |
| 88 |
|
| 89 |
public void setProperty2(String property2) |
| 90 |
{ |
| 91 |
this.property2Invisible = "set" + property2; |
| 92 |
} |
| 93 |
|
| 94 |
public void setProperty3(String property3) |
| 95 |
{ |
| 96 |
this.property3 = "set" + property3; |
| 97 |
} |
| 98 |
|
| 99 |
public void setProperty5(String property5) |
| 100 |
{ |
| 101 |
this.property5 = "set" + property5; |
| 102 |
} |
| 103 |
|
| 104 |
public void setProperty6(String property6) |
| 105 |
{ |
| 106 |
this.property7 = "set" + property6; |
| 107 |
} |
| 108 |
|
| 109 |
public static String m1; |
| 110 |
public String m2; |
| 111 |
public String m3; |
| 112 |
public String m4; |
| 113 |
public String m5; |
| 114 |
|
| 115 |
public String getPropertyMember() |
| 116 |
{ |
| 117 |
return this.m2; |
| 118 |
} |
| 119 |
|
| 120 |
public void setPropertyMember(String value) |
| 121 |
{ |
| 122 |
this.m2 = value; |
| 123 |
} |
| 124 |
|
| 125 |
public static String getPropertyStatic() |
| 126 |
{ |
| 127 |
return m1; |
| 128 |
} |
| 129 |
|
| 130 |
public static void setPropertyStatic(String value) |
| 131 |
{ |
| 132 |
m1 = value; |
| 133 |
} |
| 134 |
|
| 135 |
public String getReadOnly() |
| 136 |
{ |
| 137 |
return this.m3; |
| 138 |
} |
| 139 |
|
| 140 |
public void setWriteOnly(String value) |
| 141 |
{ |
| 142 |
this.m4 = value; |
| 143 |
} |
| 144 |
|
| 145 |
public void setWith(String value) |
| 146 |
{ |
| 147 |
this.m5 = value; |
| 148 |
} |
| 149 |
|
| 150 |
public String getWith() |
| 151 |
{ |
| 152 |
return this.m5; |
| 153 |
} |
| 154 |
|
| 155 |
public void setFailure1(String value, int i) |
| 156 |
{ |
| 157 |
} |
| 158 |
|
| 159 |
public String getFailure2(int i) |
| 160 |
{ |
| 161 |
return "fail"; |
| 162 |
} |
| 163 |
|
| 164 |
} |