public static boolean isValidStringMinLength ( final GraphObject node , final PropertyKey < String > key , final int minLength , final ErrorBuffer errorBuffer ) { String value = node . getProperty ( key ) ; String type = node . getType ( ) ; if ( StringUtils . isNotBlank ( value ) ) { if ( value . length ( ) >= minLength ) { return true ; } errorBuffer . add ( new TooShortToken ( type , key , minLength ) ) ; return false ; } errorBuffer . add ( new EmptyPropertyToken ( type , key ) ) ; return false ; }
Checks whether the value for the given property key of the given node has at least the given length .