public class LicenseRdfFormatWriter extends Object implements ILicenseFormatWriter
| Constructor and Description |
|---|
LicenseRdfFormatWriter(File rdfXml,
File rdfTurtle,
File rdfNt) |
| Modifier and Type | Method and Description |
|---|---|
File |
getRdfNt() |
File |
getRdfTurtle() |
File |
getRdfXml() |
void |
setRdfNt(File rdfNt) |
void |
setRdfTurtle(File rdfTurtle) |
void |
setRdfXml(File rdfXml) |
void |
writeException(LicenseException exception,
boolean deprecated,
String deprecatedVersion) |
void |
writeLicense(SpdxListedLicense license,
boolean deprecated,
String deprecatedVersion)
Formats and writes a specific license
|
void |
writeToC()
Write the Table of Contents file for the format if applicable
|
public File getRdfXml()
public void setRdfXml(File rdfXml)
rdfXml - the rdfXml to setpublic File getRdfTurtle()
public void setRdfTurtle(File rdfTurtle)
rdfTurtle - the rdfTurtle to setpublic File getRdfNt()
public void setRdfNt(File rdfNt)
rdfNt - the rdfNt to setpublic void writeLicense(SpdxListedLicense license, boolean deprecated, String deprecatedVersion) throws IOException, LicenseGeneratorException
ILicenseFormatWriterwriteLicense in interface ILicenseFormatWriterlicense - License to be addeddeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionLicenseGeneratorExceptionpublic void writeToC()
throws IOException,
LicenseGeneratorException
ILicenseFormatWriterwriteToC in interface ILicenseFormatWriterIOExceptionLicenseGeneratorExceptionpublic void writeException(LicenseException exception, boolean deprecated, String deprecatedVersion) throws IOException, LicenseGeneratorException
writeException in interface ILicenseFormatWriterexception - Exception to be formatted and writtendeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionLicenseGeneratorExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.