Package org.spdx.rdfparser.license
Class ListedLicenseException
java.lang.Object
org.spdx.rdfparser.license.LicenseException
org.spdx.rdfparser.license.ListedLicenseException
public class ListedLicenseException extends LicenseException
Exceptions listed in the SPDX license list
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description ListedLicenseException(String exceptionId)ListedLicenseException(String licenseExceptionId, String name, String licenseExceptionText)ListedLicenseException(String licenseExceptionId, String name, String licenseExceptionText, String[] seeAlso, String comment)ListedLicenseException(String licenseExceptionId, String name, String licenseExceptionText, String licenseExceptionTemplate, String[] seeAlso, String comment)ListedLicenseException(String licenseExceptionId, String name, String licenseExceptionText, String licenseExceptionTemplate, String[] seeAlso, String comment, String exceptionTextHtml, boolean isDeprecated, String deprecatedVersion)ListedLicenseException(IModelContainer modelContainer, org.apache.jena.graph.Node node) -
Method Summary
Modifier and Type Method Description LicenseExceptionclone()StringgetDeprecatedVersion()StringgetExceptionTextHtml()StringgetUri(IModelContainer modelContainer)voidsetDeprecatedVersion(String deprecatedVersion)voidsetExceptionTextHtml(String exceptionTextHtml)Methods inherited from class org.spdx.rdfparser.license.LicenseException
copyFrom, createResource, equals, equivalent, findException, getComment, getExample, getExceptionTextFromModel, getLicenseExceptionId, getLicenseExceptionTemplate, getLicenseExceptionText, getName, getSeeAlso, hashCode, isDeprecated, setComment, setDeprecated, setExample, setLicenseExceptionId, setLicenseExceptionTemplate, setLicenseExceptionText, setMultipleObjectsForSameNode, setName, setSeeAlso, setSingleObjectForSameNode, toString, verify
-
Constructor Details
-
ListedLicenseException
public ListedLicenseException(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisException- Parameters:
modelContainer-node-- Throws:
InvalidSPDXAnalysisException
-
ListedLicenseException
public ListedLicenseException(String licenseExceptionId, String name, String licenseExceptionText, String[] seeAlso, String comment)- Parameters:
licenseExceptionId-name-licenseExceptionText-seeAlso-comment-
-
ListedLicenseException
public ListedLicenseException(String licenseExceptionId, String name, String licenseExceptionText, String licenseExceptionTemplate, String[] seeAlso, String comment, String exceptionTextHtml, boolean isDeprecated, String deprecatedVersion)- Parameters:
licenseExceptionId- Exception ID - short form IDname- Full name of the ExceptionlicenseExceptionText- Text for the ExceptionlicenseExceptionTemplate- License exception template use for matching license exceptions per SPDX license matching guidelinescomment- Comments on the exceptionseeAlso- URL references to external sources for the exceptionexceptionTextHtml-isDeprecated-deprecatedVersion-
-
ListedLicenseException
public ListedLicenseException(String licenseExceptionId, String name, String licenseExceptionText, String licenseExceptionTemplate, String[] seeAlso, String comment)- Parameters:
licenseExceptionId- Exception ID - short form IDname- Full name of the ExceptionlicenseExceptionText- Text for the ExceptionlicenseExceptionTemplate- License exception template use for matching license exceptions per SPDX license matching guidelinesseeAlso- URL references to external sources for the exceptioncomment- Comments on the exception
-
ListedLicenseException
- Parameters:
licenseExceptionId- Exception ID - short form IDname- Full name of the ExceptionlicenseExceptionText- Text for the Exception
-
ListedLicenseException
- Parameters:
exceptionId-
-
-
Method Details
-
getDeprecatedVersion
- Returns:
- the deprecatedVersion
-
setDeprecatedVersion
- Parameters:
deprecatedVersion- the deprecatedVersion to set
-
getExceptionTextHtml
- Returns:
- HTML fragment containing the Exception Text
- Throws:
InvalidLicenseTemplateException
-
setExceptionTextHtml
- Parameters:
exceptionTextHtml- the exceptionTextHtml to set
-
getUri
- Overrides:
getUriin classLicenseException- Throws:
InvalidSPDXAnalysisException
-
clone
- Overrides:
clonein classLicenseException
-