Package org.spdx.rdfparser
Class SPDXChecksum
java.lang.Object
org.spdx.rdfparser.SPDXChecksum
- All Implemented Interfaces:
Cloneable
@Deprecated public class SPDXChecksum extends Object implements Cloneable
Deprecated.
SPDX Checksum class for packages and files
This class is provided for compatibility with version 1.2 of the library and
is no longer used by version 2.0 or above. It has been replaced by model.Checksum
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description static Map<String,String>ALGORITHM_TO_URIDeprecated.static Map<String,String>URI_TO_ALGORITHMDeprecated. -
Constructor Summary
Constructors Constructor Description SPDXChecksum(String algorithm, String value)Deprecated.SPDXChecksum(org.apache.jena.rdf.model.Model spdxModel, org.apache.jena.graph.Node checksumNode)Deprecated. -
Method Summary
Modifier and Type Method Description static StringalgorithmResourceToString(org.apache.jena.rdf.model.Resource algorithmResource)Deprecated.static org.apache.jena.rdf.model.ResourcealgorithmStringToResource(String algorithm, org.apache.jena.rdf.model.Model model)Deprecated.Converts a string algorithm to an RDF resourceSPDXChecksumclone()Deprecated.org.apache.jena.rdf.model.ResourcecreateResource(org.apache.jena.rdf.model.Model model)Deprecated.Creates a resource from this SPDX Checksumbooleanequals(Object o)Deprecated.protected static org.apache.jena.rdf.model.ResourcefindSpdxChecksum(org.apache.jena.rdf.model.Model model, SPDXChecksum checksum)Deprecated.StringgetAlgorithm()Deprecated.org.apache.jena.rdf.model.ResourcegetResource()Deprecated.StringgetValue()Deprecated.inthashCode()Deprecated.voidsetAlgorithm(String algorithm)Deprecated.voidsetValue(String value)Deprecated.List<String>verify()Deprecated.
-
Field Details
-
ALGORITHM_TO_URI
Deprecated. -
URI_TO_ALGORITHM
Deprecated.
-
-
Constructor Details
-
SPDXChecksum
Deprecated. -
SPDXChecksum
public SPDXChecksum(org.apache.jena.rdf.model.Model spdxModel, org.apache.jena.graph.Node checksumNode) throws InvalidSPDXAnalysisExceptionDeprecated.- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
findSpdxChecksum
protected static org.apache.jena.rdf.model.Resource findSpdxChecksum(org.apache.jena.rdf.model.Model model, SPDXChecksum checksum) throws InvalidSPDXAnalysisExceptionDeprecated.- Throws:
InvalidSPDXAnalysisException
-
getAlgorithm
Deprecated.- Returns:
- the algorithm
-
setAlgorithm
Deprecated.- Parameters:
algorithm- the algorithm to set- Throws:
InvalidSPDXAnalysisException
-
algorithmStringToResource
public static org.apache.jena.rdf.model.Resource algorithmStringToResource(String algorithm, org.apache.jena.rdf.model.Model model) throws InvalidSPDXAnalysisExceptionDeprecated.Converts a string algorithm to an RDF resource- Parameters:
algorithm-- Returns:
- Throws:
InvalidSPDXAnalysisException
-
algorithmResourceToString
public static String algorithmResourceToString(org.apache.jena.rdf.model.Resource algorithmResource) throws InvalidSPDXAnalysisExceptionDeprecated.- Throws:
InvalidSPDXAnalysisException
-
getValue
Deprecated.- Returns:
- the value
-
setValue
Deprecated.- Parameters:
value- the value to set
-
createResource
public org.apache.jena.rdf.model.Resource createResource(org.apache.jena.rdf.model.Model model)Deprecated.Creates a resource from this SPDX Checksum- Parameters:
model-- Returns:
-
verify
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
getResource
public org.apache.jena.rdf.model.Resource getResource()Deprecated.- Returns:
-
clone
Deprecated.
-