public void setName ( String name ) { if ( name == null ) { throw new IllegalArgumentException ( "Field name cannot be null" ) ; } if ( name . length ( ) == 0 || name . length ( ) > 10 ) { throw new IllegalArgumentException ( "Field name should be of length 0-10" ) ; } if ( ! DBFUtils . isPureAscii ( name ) ) { throw new IllegalArgumentException ( "Field name must be ASCII" ) ; } this . name = name ; }
Sets the name of the field .