A general maximality principle and a fixed point theorem in uniform space