public void setAsText ( String text ) throws IllegalArgumentException { if ( this . allowEmpty && ! StringUtils . hasText ( text ) ) { // Treat empty String as null value. setValue ( null ) ; } else { setValue ( new LocalDate ( this . formatter . parseDateTime ( text ) ) ) ; } }
Parse the value from the given text using the specified format .