@Test public void testFieldType() { final Class<?> clazz = accessor.getFieldType(testBean.getClass(), TestBean.PROP_NAME); Assert.assertEquals(String.class, clazz); }
public Class<?> getFieldType(final Class<?> beanClass, final String fieldName) { return getAccessor(beanClass).getFieldType(fieldName); }
FieldAccessor { public Class<?> getFieldType(final Class<?> beanClass, final String fieldName) { return getAccessor(beanClass).getFieldType(fieldName); } }
FieldAccessor { public Class<?> getFieldType(final Class<?> beanClass, final String fieldName) { return getAccessor(beanClass).getFieldType(fieldName); } FieldAccessor(); }
FieldAccessor { public Class<?> getFieldType(final Class<?> beanClass, final String fieldName) { return getAccessor(beanClass).getFieldType(fieldName); } FieldAccessor(); Object read(final Object bean, final String fieldName); void write(final Object bean, final String fieldName, final Object param); Class<?> getFieldType(final Class<?> beanClass, final String fieldName); Field getField(final Class<?> beanClass, final String fieldName); }
FieldAccessor { public Class<?> getFieldType(final Class<?> beanClass, final String fieldName) { return getAccessor(beanClass).getFieldType(fieldName); } FieldAccessor(); Object read(final Object bean, final String fieldName); void write(final Object bean, final String fieldName, final Object param); Class<?> getFieldType(final Class<?> beanClass, final String fieldName); Field getField(final Class<?> beanClass, final String fieldName);  }