176177178179180181182183
else if (o instanceof Field) return ((Field) o).getType(); else return ((Method) o).getReturnType(); } catch (Exception e) { throw new OSchemaException("Cannot get the value of the property: " + iProperty, e); } }
206207208209210211212213
return ((Method) o).invoke(iPojo); else if (o instanceof Field) return ((Field) o).get(iPojo); return null; } catch (Exception e) { throw new OSchemaException("Cannot get the value of the property: " + iProperty, e); } }
228229230231232233234235236
((Field) o).set(iPojo, OType.convert(iValue, ((Field) o).getType())); } } catch (Exception e) { throw new OSchemaException( "Cannot set the value '" + iValue + "' to the property '" + iProperty + "' for the pojo: " + iPojo, e); } }