![]() |
FOSSology
4.5.1
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
def | __init__ (self) |
Optional[str] | first_license (self) |
None | first_license (self, str first_license) |
Optional[str] | second_license (self) |
None | second_license (self, str second_license) |
Optional[str] | first_type (self) |
None | first_type (self, Optional[str] first_type) |
Optional[str] | second_type (self) |
None | second_type (self, Optional[str] second_type) |
bool | result (self) |
None | result (self, Union[osadl_matrix.OSADLCompatibility, bool] result) |
str | comment (self) |
None | comment (self, str comment) |
bool | __eq__ (self, other) |
def | __repr__ (self) |
Public Attributes | |
first_license | |
second_license | |
first_type | |
second_type | |
result | |
Private Attributes | |
__first_license | |
__second_license | |
__first_type | |
__second_type | |
__result | |
__comment | |
Class to hold information about a single rule. :ivar __first_license: First license of the rule. :ivar __second_license: Second license of the rule. :ivar __first_type: First type of the license. :ivar __second_type: Second type of the license. :ivar __result: Compatibility result of the rule. :ivar __comment: Comment on the rule.
Definition at line 25 of file osadl_convertor.py.
bool osadl_convertor.MatrixItem.__eq__ | ( | self, | |
other | |||
) |
Two rules are equal if: - They talk about the same licenses and have same result. - They talk about the same license types and have same result.
Definition at line 136 of file osadl_convertor.py.
str osadl_convertor.MatrixItem.comment | ( | self | ) |
Get comment on the rule. :return:
Definition at line 122 of file osadl_convertor.py.
None osadl_convertor.MatrixItem.comment | ( | self, | |
str | comment | ||
) |
Set comment on the rule.
Definition at line 130 of file osadl_convertor.py.
Optional[str] osadl_convertor.MatrixItem.first_license | ( | self | ) |
Get name of the first license.
Definition at line 45 of file osadl_convertor.py.
None osadl_convertor.MatrixItem.first_license | ( | self, | |
str | first_license | ||
) |
Set name of the first license.
Definition at line 52 of file osadl_convertor.py.
Optional[str] osadl_convertor.MatrixItem.first_type | ( | self | ) |
Get type of the first license.
Definition at line 73 of file osadl_convertor.py.
None osadl_convertor.MatrixItem.first_type | ( | self, | |
Optional[str] | first_type | ||
) |
Set type of the first license.
Definition at line 80 of file osadl_convertor.py.
bool osadl_convertor.MatrixItem.result | ( | self | ) |
Get result of the rule as boolean.
Definition at line 101 of file osadl_convertor.py.
None osadl_convertor.MatrixItem.result | ( | self, | |
Union[osadl_matrix.OSADLCompatibility, bool] | result | ||
) |
Set result of the rule. It can be boolean or an object of OSADLCompatibility enum.
Definition at line 113 of file osadl_convertor.py.
Optional[str] osadl_convertor.MatrixItem.second_license | ( | self | ) |
Get name of the second license.
Definition at line 59 of file osadl_convertor.py.
None osadl_convertor.MatrixItem.second_license | ( | self, | |
str | second_license | ||
) |
Set name of the second license.
Definition at line 66 of file osadl_convertor.py.
Optional[str] osadl_convertor.MatrixItem.second_type | ( | self | ) |
Get type of the second license.
Definition at line 87 of file osadl_convertor.py.
None osadl_convertor.MatrixItem.second_type | ( | self, | |
Optional[str] | second_type | ||
) |
Set type of the second license.
Definition at line 94 of file osadl_convertor.py.