/** * For the most part, this is a simple delegation to {@link PersistentClass#isPropertyDefinedInHierarchy}, * after verifying that PersistentClass is indeed set here. * * @param name The name of the property to check * * @return {@code true} if a property by that given name does already exist in the super hierarchy. */ @SuppressWarnings("SimplifiableIfStatement") public boolean isPropertyDefinedInSuperHierarchy(String name) { // Yes, yes... persistentClass can be null because EntityBinder can be used // to bind components as well, of course... if ( persistentClass == null ) { return false; } return persistentClass.isPropertyDefinedInSuperHierarchy( name ); }
/** * For the most part, this is a simple delegation to {@link PersistentClass#isPropertyDefinedInHierarchy}, * after verifying that PersistentClass is indeed set here. * * @param name The name of the property to check * * @return {@code true} if a property by that given name does already exist in the super hierarchy. */ @SuppressWarnings("SimplifiableIfStatement") public boolean isPropertyDefinedInSuperHierarchy(String name) { // Yes, yes... persistentClass can be null because EntityBinder can be used // to bind components as well, of course... if ( persistentClass == null ) { return false; } return persistentClass.isPropertyDefinedInSuperHierarchy( name ); }