Generic multiformattable class