Example usage for org.springframework.beans ConfigurablePropertyAccessor isReadableProperty

List of usage examples for org.springframework.beans ConfigurablePropertyAccessor isReadableProperty

Introduction

In this page you can find the example usage for org.springframework.beans ConfigurablePropertyAccessor isReadableProperty.

Prototype

boolean isReadableProperty(String propertyName);

Source Link

Document

Determine whether the specified property is readable.

Usage

From source file:org.codehaus.groovy.grails.web.binding.GrailsDataBinder.java

private boolean isNullAndWritableProperty(ConfigurablePropertyAccessor accessor, String propertyName) {
    return accessor.isWritableProperty(propertyName)
            && (accessor.isReadableProperty(propertyName) && accessor.getPropertyValue(propertyName) == null);
}