public class LicenseException extends Object implements IRdfModel, Cloneable
| Constructor and Description |
|---|
LicenseException() |
LicenseException(IModelContainer modelContainer,
org.apache.jena.graph.Node node) |
LicenseException(String exceptionId) |
LicenseException(String licenseExceptionId,
String name,
String licenseExceptionText) |
LicenseException(String licenseExceptionId,
String name,
String licenseExceptionText,
String[] seeAlso,
String comment) |
LicenseException(String licenseExceptionId,
String name,
String licenseExceptionText,
String[] seeAlso,
String comment,
String example)
Deprecated.
|
LicenseException(String licenseExceptionId,
String name,
String licenseExceptionText,
String licenseExceptionTemplate,
String[] seeAlso,
String comment) |
| Modifier and Type | Method and Description |
|---|---|
LicenseException |
clone() |
org.apache.jena.rdf.model.Resource |
createResource(IModelContainer modelContainer)
If a resource does not already exist in this model for this object,
create a new resource and populate it.
|
boolean |
equals(Object o) |
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
|
static org.apache.jena.graph.Node |
findException(org.apache.jena.rdf.model.Model model,
String id)
Searches the model for a exception with the ID
|
String |
getComment() |
String |
getExample()
Deprecated.
|
static String |
getExceptionTextFromModel(org.apache.jena.rdf.model.Model model,
org.apache.jena.graph.Node exceptionNode)
Get the exception text from the model
|
String |
getLicenseExceptionId() |
String |
getLicenseExceptionTemplate() |
String |
getLicenseExceptionText() |
String |
getName() |
String[] |
getSeeAlso() |
int |
hashCode() |
boolean |
isDeprecated() |
void |
setComment(String comment) |
void |
setDeprecated(boolean deprecated) |
void |
setExample(String example)
Deprecated.
|
void |
setLicenseExceptionId(String id) |
void |
setLicenseExceptionTemplate(String template) |
void |
setLicenseExceptionText(String text) |
void |
setMultipleObjectsForSameNode()
Called to signal that there are multiple objects representing the same node
|
void |
setName(String name) |
void |
setSeeAlso(String[] url) |
void |
setSingleObjectForSameNode()
Called to signal that a newly created resource is only used for a single node
|
String |
toString() |
List<String> |
verify() |
public LicenseException(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisException@Deprecated public LicenseException(String licenseExceptionId, String name, String licenseExceptionText, String[] seeAlso, String comment, String example)
licenseExceptionId - Exception ID - short form IDname - Full name of the ExceptionlicenseExceptionText - Text for the Exceptioncomment - Comments on the exceptionexample - Example of useseeAlso - URL references to external sources for the exceptionpublic LicenseException(String licenseExceptionId, String name, String licenseExceptionText, String[] seeAlso, String comment)
licenseExceptionId - Exception ID - short form IDname - Full name of the ExceptionlicenseExceptionText - Text for the Exceptioncomment - Comments on the exceptionexample - Example of useseeAlso - URL references to external sources for the exceptionpublic LicenseException(String licenseExceptionId, String name, String licenseExceptionText, String licenseExceptionTemplate, String[] seeAlso, String comment)
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 exceptionpublic LicenseException(String licenseExceptionId, String name, String licenseExceptionText)
licenseExceptionId - Exception ID - short form IDname - Full name of the ExceptionlicenseExceptionText - Text for the Exceptionpublic LicenseException()
public LicenseException(String exceptionId)
token - public org.apache.jena.rdf.model.Resource createResource(IModelContainer modelContainer) throws InvalidSPDXAnalysisException
createResource in interface IRdfModelmodel - InvalidSPDXAnalysisExceptionpublic static String getExceptionTextFromModel(org.apache.jena.rdf.model.Model model, org.apache.jena.graph.Node exceptionNode)
model - exceptionNode - public static org.apache.jena.graph.Node findException(org.apache.jena.rdf.model.Model model,
String id)
model - id - public String getLicenseExceptionId()
public void setLicenseExceptionId(String id) throws InvalidSPDXAnalysisException
id - the id to setInvalidSPDXAnalysisExceptionpublic String getName()
public void setName(String name)
name - the name to setpublic String getLicenseExceptionText()
public void setLicenseExceptionText(String text)
text - the text to setpublic String getLicenseExceptionTemplate()
public void setLicenseExceptionTemplate(String template)
template - the text to setpublic String[] getSeeAlso()
public void setSeeAlso(String[] url)
url - the sourceUrl to setpublic String getComment()
public void setComment(String comment)
@Deprecated public String getExample()
@Deprecated public void setExample(String example)
public LicenseException clone()
public boolean equivalent(IRdfModel compare)
IRdfModelequivalent in interface IRdfModelpublic void setMultipleObjectsForSameNode()
IRdfModelsetMultipleObjectsForSameNode in interface IRdfModelpublic void setSingleObjectForSameNode()
IRdfModelsetSingleObjectForSameNode in interface IRdfModelpublic boolean isDeprecated()
public void setDeprecated(boolean deprecated)
deprecated - true if this license is deprecatedCopyright © 2018 Linux Foundation. All Rights Reserved.