def parse_only_extr_license(self, extr_lic):
<EOL>ident = self.get_extr_license_ident(extr_lic)<EOL>text = self.get_extr_license_text(extr_lic)<EOL>comment = self.get_extr_lics_comment(extr_lic)<EOL>xrefs = self.get_extr_lics_xref(extr_lic)<EOL>name = self.get_extr_lic_name(extr_lic)<EOL>if not ident:<EOL><INDENT>return<EOL><DEDENT>lic = document.ExtractedLicense(ident)<EOL>if text is not None:<EOL><INDENT>lic.text = text<EOL><DEDENT>if name is not None:<EOL><INDENT>lic.full_name = name<EOL><DEDENT>if comment is not None:<EOL><INDENT>lic.comment = comment<EOL><DEDENT>lic.cross_ref = map(lambda x: six.text_type(x), xrefs)<EOL>return lic<EOL>
Return an ExtractedLicense object to represent a license object.
But does not add it to the SPDXDocument model.
Return None if failed.