126 |
} |
} |
127 |
|
|
128 |
// finally check the methods compatibility |
// finally check the methods compatibility |
129 |
checkMethods(getMethod, setMethod); |
propertyType = checkMethods(getMethod, setMethod); |
130 |
} |
} |
131 |
|
|
132 |
/** Create a new PropertyDescriptor by introspection. |
/** Create a new PropertyDescriptor by introspection. |
178 |
"Cannot find a setter method called " + setMethodName); |
"Cannot find a setter method called " + setMethodName); |
179 |
} |
} |
180 |
|
|
181 |
checkMethods(getMethod, setMethod); |
propertyType = checkMethods(getMethod, setMethod); |
182 |
} |
} |
183 |
|
|
184 |
/** Create a new PropertyDescriptor using explicit Methods. |
/** Create a new PropertyDescriptor using explicit Methods. |
205 |
setName(name); |
setName(name); |
206 |
getMethod = readMethod; |
getMethod = readMethod; |
207 |
setMethod = writeMethod; |
setMethod = writeMethod; |
208 |
|
propertyType = checkMethods(getMethod, setMethod); |
|
if (getMethod != null) |
|
|
{ |
|
|
this.propertyType = getMethod.getReturnType(); |
|
|
} |
|
|
else if (setMethod != null) |
|
|
{ |
|
|
this.propertyType = setMethod.getParameterTypes()[0]; |
|
|
} |
|
|
|
|
|
checkMethods(getMethod, setMethod); |
|
209 |
} |
} |
210 |
|
|
211 |
/** Get the property type. |
/** Get the property type. |
240 |
*/ |
*/ |
241 |
public void setReadMethod(Method readMethod) throws IntrospectionException |
public void setReadMethod(Method readMethod) throws IntrospectionException |
242 |
{ |
{ |
243 |
checkMethods(readMethod, setMethod); |
propertyType = checkMethods(readMethod, setMethod); |
244 |
|
|
245 |
getMethod = readMethod; |
getMethod = readMethod; |
246 |
} |
} |