public class SPDXStandardLicense extends SPDXLicense
id| Constructor and Description |
|---|
SPDXStandardLicense(com.hp.hpl.jena.rdf.model.Model spdxModel,
com.hp.hpl.jena.graph.Node licenseNode)
Constructs an SPDX License from the licenseNode
|
SPDXStandardLicense(String name,
String id,
String text,
String[] sourceUrl,
String notes,
String standardLicenseNotice,
String template,
boolean osiApproved) |
| Modifier and Type | Method and Description |
|---|---|
protected com.hp.hpl.jena.rdf.model.Resource |
_createResource(com.hp.hpl.jena.rdf.model.Model model)
Internal implementation of create resource which is subclass specific
|
boolean |
equals(Object o) |
String |
getComment() |
String |
getName() |
String |
getNotes()
Deprecated.
|
String[] |
getSourceUrl() |
String |
getStandardLicenseHeader() |
String |
getTemplate() |
String |
getText() |
int |
hashCode() |
boolean |
isOsiApproved() |
void |
setComment(String comment) |
void |
setName(String name) |
void |
setNotes(String notes)
Deprecated.
|
void |
setOsiApproved(boolean osiApproved) |
void |
setSourceUrl(String[] sourceUrl) |
void |
setStandardLicenseHeader(String standardLicenseHeader) |
void |
setTemplate(String template) |
void |
setText(String text) |
String |
toString() |
ArrayList<String> |
verify() |
_createResource, _createResource, getId, setIdcreateResource, getResourcepublic SPDXStandardLicense(String name, String id, String text, String[] sourceUrl, String notes, String standardLicenseNotice, String template, boolean osiApproved) throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic SPDXStandardLicense(com.hp.hpl.jena.rdf.model.Model spdxModel,
com.hp.hpl.jena.graph.Node licenseNode)
throws InvalidSPDXAnalysisException
licenseNode - RDF graph node representing the SPDX LicenseInvalidSPDXAnalysisExceptionpublic String getName()
public void setName(String name)
name - the name to setpublic String getText()
public void setText(String text)
text - the text to setpublic String[] getSourceUrl()
public void setSourceUrl(String[] sourceUrl)
sourceUrl - the sourceUrl to setpublic String getComment()
@Deprecated public String getNotes()
@Deprecated public void setNotes(String notes)
public void setComment(String comment)
comment - the comment to setpublic String getStandardLicenseHeader()
public void setStandardLicenseHeader(String standardLicenseHeader)
standardLicenseHeader - the standardLicenseHeader to setpublic String getTemplate()
public void setTemplate(String template)
template - the template to setpublic String toString()
toString in class SPDXLicenseInfoprotected com.hp.hpl.jena.rdf.model.Resource _createResource(com.hp.hpl.jena.rdf.model.Model model)
SPDXLicenseInfo_createResource in class SPDXLicenseInfopublic int hashCode()
hashCode in class SPDXLicensepublic boolean equals(Object o)
equals in class SPDXLicensepublic ArrayList<String> verify()
verify in class SPDXLicenseInfopublic boolean isOsiApproved()
public void setOsiApproved(boolean osiApproved)
Copyright © 2014 Linux Foundation. All Rights Reserved.