def set_all_name_components(self, name, weight, width, custom_name):
self.weight = weight or "<STR_LIT>"<EOL>self.width = width or "<STR_LIT>"<EOL>self.customName = custom_name or "<STR_LIT>"<EOL>if self._joinName() == name:<EOL><INDENT>self._name = None<EOL>del self.customParameters["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>self._name = name<EOL>self.customParameters["<STR_LIT>"] = name<EOL><DEDENT>
This function ensures that after being called, the master.name,
        master.weight, master.width, and master.customName match the given
        values.