@Test public void getPropertyType() throws ODataException { SimpleEntity data = new SimpleEntity(); data.name = "A Name"; EdmProperty property = mockProperty("Name"); Class<?> type = ava.getPropertyType(data, property); Assert.assertEquals(String.class, type); }
@Override public <T> Class<?> getPropertyType(final T data, final EdmProperty property) throws ODataException { return getType(data, getGetterMethodName(property)); }
BeanPropertyAccess implements ValueAccess { @Override public <T> Class<?> getPropertyType(final T data, final EdmProperty property) throws ODataException { return getType(data, getGetterMethodName(property)); } }
BeanPropertyAccess implements ValueAccess { @Override public <T> Class<?> getPropertyType(final T data, final EdmProperty property) throws ODataException { return getType(data, getGetterMethodName(property)); }  }
BeanPropertyAccess implements ValueAccess { @Override public <T> Class<?> getPropertyType(final T data, final EdmProperty property) throws ODataException { return getType(data, getGetterMethodName(property)); }  @Override Object getPropertyValue(final T data, final EdmProperty property); @Override void setPropertyValue(final T data, final EdmProperty property, final V value); @Override Class<?> getPropertyType(final T data, final EdmProperty property); @Override Object getMappingValue(final T data, final EdmMapping mapping); @Override void setMappingValue(final T data, final EdmMapping mapping, final V value); }
BeanPropertyAccess implements ValueAccess { @Override public <T> Class<?> getPropertyType(final T data, final EdmProperty property) throws ODataException { return getType(data, getGetterMethodName(property)); }  @Override Object getPropertyValue(final T data, final EdmProperty property); @Override void setPropertyValue(final T data, final EdmProperty property, final V value); @Override Class<?> getPropertyType(final T data, final EdmProperty property); @Override Object getMappingValue(final T data, final EdmMapping mapping); @Override void setMappingValue(final T data, final EdmMapping mapping, final V value);  }