getName and serialize for all components.