def set_lic_name(self, doc, name):
if self.has_extr_lic(doc):<EOL><INDENT>if not self.extr_lic_name_set:<EOL><INDENT>self.extr_lic_name_set = True<EOL>if validations.validate_extr_lic_name(name):<EOL><INDENT>self.extr_lic(doc).full_name = name<EOL>return True<EOL><DEDENT>else:<EOL><INDENT>raise SPDXValueError('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise CardinalityError('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise OrderError('<STR_LIT>')<EOL><DEDENT>
Sets license name.
        Raises SPDXValueError if name is not str or utils.NoAssert
        Raises OrderError if no license id defined.