public static boolean nameIsLegal ( String optionName ) { for ( char illegalChar : illegalNameCharacters ) { if ( optionName . indexOf ( illegalChar ) >= 0 ) { return false ; } } return true ; }
Gets whether the name is valid or not .