private static boolean isValueAlphaNumeric(String input, String caller) {   

        for(int i = 0; i < input.length(); i++)
        {
            char ch = input.charAt(i);
            if (!Character.isLetterOrDigit(ch) && !(caller.equalsIgnoreCase("variant") && (( ch == '-') || (ch == '_')))){                    
                if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {
                    logger.logp(Level.FINE, CLASS_NAME,"isValueAlphaNumeric", "Encountered incorrect value ["+ch+"] .. in this token [" +caller+"]");
                }
                return false;           
            }
        }
        return true;            
    }
private static boolean isValueAlphaNumeric ( String input , String caller ) { for ( int i = 0 ; i < input . length ( ) ; i ++ ) { char ch = input . charAt ( i ) ; if ( ! Character . isLetterOrDigit ( ch ) && ! ( caller . equalsIgnoreCase ( "variant" ) && ( ( ch == '-' ) || ( ch == '_' ) ) ) ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "isValueAlphaNumeric" , "Encountered incorrect value [" + ch + "] .. in this token [" + caller + "]" ) ; } return false ; } } return true ; }
@param input
@param caller
@return