question: int parseNumber ( String source , int ofs , String name , int min , int max ) throws ParseException { if ( source == null ) { throwInvalid ( name , ofs ) ; } int v = - 1 ; try { v = Integer . parseInt ( source ) ; } catch ( NumberFormatException nfe ) { throwInvalid ( name , ofs ) ; } if ( min != max ) { validateNumber ( v , ofs , name , min , max ) ; } return v ; }
target:  Parse a numeric value, validating against given min/max constraints.