deprecated, fsfLibre, licenseText, osiApproved, standardLicenseHeader, standardLicenseTemplatecomment, licenseId, name, seeAlsomodel, modelContainer, node, refreshOnGet, resource| Constructor and Description |
|---|
SpdxListedLicense(IModelContainer modelContainer,
org.apache.jena.graph.Node licenseNode)
Constructs an SPDX License from the licenseNode
|
SpdxListedLicense(String name,
String id,
String text,
String[] sourceUrl,
String comments,
String standardLicenseHeader,
String template,
boolean osiApproved) |
SpdxListedLicense(String name,
String id,
String text,
String[] sourceUrl,
String comments,
String standardLicenseHeader,
String template,
boolean osiApproved,
boolean fsfLibre) |
SpdxListedLicense(String name,
String id,
String text,
String[] sourceUrl,
String comments,
String standardLicenseHeader,
String template,
boolean osiApproved,
Boolean fsfLibre,
String licenseTextHtml,
boolean isDeprecated,
String deprecatedVersion) |
SpdxListedLicense(String name,
String id,
String text,
String[] sourceUrl,
String comments,
String standardLicenseHeader,
String template,
boolean osiApproved,
String licenseTextHtml) |
SpdxListedLicense(String name,
String id,
String text,
String[] sourceUrl,
String comments,
String standardLicenseHeader,
String template,
String licenseHeaderTemplate,
boolean osiApproved,
Boolean fsfLibre) |
SpdxListedLicense(String name,
String id,
String text,
String[] sourceUrl,
String comments,
String standardLicenseHeader,
String template,
String licenseHeaderTemplate,
boolean osiApproved,
boolean fsfLibre,
String licenseTextHtml,
String licenseHeaderHtml) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equivalent(IRdfModel compare)
Returns true if the compare object contains properties which would be equal if they were contained in the same RDF Model
|
String |
getDeprecatedVersion() |
String |
getLicenseHeaderHtml() |
String |
getLicenseTextHtml() |
org.apache.jena.rdf.model.Resource |
getType(org.apache.jena.rdf.model.Model model) |
String |
getUri(IModelContainer modelContainer)
Get the URI for this RDF object.
|
void |
setDeprecatedVersion(String deprecatedVersion) |
void |
setLicenseHeaderHtml(String licenseHeaderHtml)
Set the licenseHeaderTemplateHtml
|
void |
setLicenseTextHtml(String licenseTextHtml)
Set the licenseTextHtml
|
List<String> |
verify() |
clone, copyFrom, equals, getFsfLibre, getLicenseText, getNotes, getPropertiesFromModel, getStandardLicenseHeader, getStandardLicenseHeaderTemplate, getStandardLicenseTemplate, hashCode, isDeprecated, isFsfLibre, isNotFsfLibre, isOsiApproved, populateModel, setDeprecated, setFsfLibre, setLicenseText, setNotes, setOsiApproved, setStandardLicenseHeader, setStandardLicenseHeaderTemplate, setStandardLicenseTemplate, toStringfindDuplicateResource, getComment, getLicenseId, getName, getSeeAlso, setComment, setLicenseId, setName, setSeeAlsogetResourceaddPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, arraysEquivalent, createResource, createResource, equivalentConsideringNull, findAnnotationPropertyValues, findAnyLicenseInfoPropertyValue, findAnyLicenseInfoPropertyValues, findChecksumPropertyValue, findCreationInfoPropertyValue, findElementPropertyValue, findExternalDocRefPropertyValues, findExternalDocRefPropertyValues, findExternalRefPropertyValues, findIntPropertyValue, findMultipleChecksumPropertyValues, findMultipleDoapPropertyValues, findMultipleElementPropertyValues, findMultiplePropertyValues, findReferenceTypePropertyValue, findRelationshipPropertyValues, findReviewPropertyValues, findSinglePointerPropertyValue, findSinglePropertyValue, findStartEndPointerPropertyValues, findUriPropertyValue, findUriPropertyValues, findVerificationCodePropertyValue, getNode, isRefreshOnGet, removePropertyValue, resourcesEqual, setMultipleObjectsForSameNode, setPropertyUriValue, setPropertyUriValues, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setSingleObjectForSameNodepublic SpdxListedLicense(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, boolean osiApproved, Boolean fsfLibre, String licenseTextHtml, boolean isDeprecated, String deprecatedVersion) throws InvalidSPDXAnalysisException
name - License nameid - License IDtext - License textsourceUrl - Optional URLs that reference this licensecomments - Optional commentsstandardLicenseHeader - Optional license headertemplate - Optional templateosiApproved - True if this is an OSI Approved licensefsfLibre - true if FSF describes the license as free / libre, false if FSF describes the license as not free / libre, null if FSF does not reference the licenselicenseTextHtml - HTML version for the license textisDeprecated - True if this license has been designated as deprecated by the SPDX legal teamdeprecatedVersion - License list version when this license was first deprecated (null if not deprecated)InvalidSPDXAnalysisExceptionpublic SpdxListedLicense(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, boolean osiApproved, String licenseTextHtml) throws InvalidSPDXAnalysisException
name - License nameid - License IDtext - License textsourceUrl - Optional URLs that reference this licensecomments - Optional commentsstandardLicenseHeader - Optional license headertemplate - Optional templateosiApproved - True if this is an OSI Approved licenselicenseTextHtml - HTML version for the license textInvalidSPDXAnalysisExceptionpublic SpdxListedLicense(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, boolean osiApproved, boolean fsfLibre) throws InvalidSPDXAnalysisException
name - License nameid - License IDtext - License textsourceUrl - Optional URLs that reference this licensecomments - Optional commentsstandardLicenseHeader - Optional license headertemplate - Optional templateosiApproved - True if this is an OSI Approvied licensefsfLibre - True if the license is listed by the Free Software Foundation as free / libreInvalidSPDXAnalysisExceptionpublic SpdxListedLicense(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, boolean osiApproved) throws InvalidSPDXAnalysisException
name - License nameid - License IDtext - License textsourceUrl - Optional URLs that reference this licensecomments - Optional commentsstandardLicenseHeader - Optional license headertemplate - Optional templateosiApproved - True if this is an OSI Approvied licenseInvalidSPDXAnalysisExceptionpublic SpdxListedLicense(IModelContainer modelContainer, org.apache.jena.graph.Node licenseNode) throws InvalidSPDXAnalysisException
modelContainer - container which includes the licenselicenseNode - RDF graph node representing the SPDX LicenseInvalidSPDXAnalysisExceptionpublic SpdxListedLicense(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, String licenseHeaderTemplate, boolean osiApproved, boolean fsfLibre, String licenseTextHtml, String licenseHeaderHtml) throws InvalidSPDXAnalysisException
name - License nameid - License IDtext - License textsourceUrl - Optional URLs that reference this licensecomments - Optional commentsstandardLicenseHeader - Optional license headertemplate - Optional templatelicenseHeaderTemplate - optional template for the standard license headerosiApproved - True if this is an OSI Approved licensefsfLibre - True if the license is listed by the Free Software Foundation as free / librelicenseTextHtml - HTML version for the license textlicenseHeaderHtml - HTML version for the standard license headerInvalidSPDXAnalysisExceptionpublic SpdxListedLicense(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, String licenseHeaderTemplate, boolean osiApproved, Boolean fsfLibre) throws InvalidSPDXAnalysisException
name - License nameid - License IDtext - License textsourceUrl - Optional URLs that reference this licensecomments - Optional commentsstandardLicenseHeader - Optional license headertemplate - Optional templatelicenseHeaderTemplate - optional template for the standard license headerosiApproved - True if this is an OSI Approved licensefsfLibre - True if the license is listed by the Free Software Foundation as free / libreInvalidSPDXAnalysisExceptionpublic org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)
getType in class RdfModelObjectpublic String getUri(IModelContainer modelContainer) throws InvalidSPDXAnalysisException
RdfModelObjectgetUri in class SimpleLicensingInfoInvalidSPDXAnalysisExceptionpublic boolean equivalent(IRdfModel compare)
IRdfModelequivalent in interface IRdfModelequivalent in class Licensepublic String getLicenseTextHtml() throws InvalidLicenseTemplateException
InvalidLicenseTemplateExceptionpublic void setLicenseTextHtml(String licenseTextHtml)
licenseTextHtml - HTML fragment representing the license textpublic String getLicenseHeaderHtml() throws InvalidLicenseTemplateException
InvalidLicenseTemplateExceptionpublic void setLicenseHeaderHtml(String licenseHeaderHtml)
licenseHeaderHtml - HTML fragment representing the license standard header textpublic String getDeprecatedVersion()
public void setDeprecatedVersion(String deprecatedVersion)
deprecatedVersion - the deprecatedVersion to setCopyright © 2018 Linux Foundation. All Rights Reserved.