If, "it has snaped from the top" means thet the string has snapped then yes you can easily repair it - Shorten the string you have or get new string.
But if, "it has snaped from the top" means that a plastic component of the switch body has broken then you will need a replacement switch assembly - they don't sell individual pieces.
Thake care - good luck...
Peccavi
May 2009