The main requirement is that the generator feeds through a proper transfer switch, switching all phases across, or by other suitable interlocked switches so that there is no possibility of connecting the generator directly to the utility line.

I don't have the specs at hand, but there are certain minimum contact spacing requirements for such switches. and they need to have a center "off" position.