public boolean hasProperty ( String property ) { // Check if a getter method exists for the property. Method getterMethod = getters . get ( property ) ; return getterMethod != null ; }
Checks if the bean has a named property . Note that if the property value is set to null on the bean this method will still return true it tests for the existance of a named property including null ones .