public class Checksum extends RdfModelObject implements Comparable<Checksum>
| Modifier and Type | Class and Description |
|---|---|
static class |
Checksum.ChecksumAlgorithm |
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.ImmutableMap<Checksum.ChecksumAlgorithm,String> |
CHECKSUM_ALGORITHM_TO_TAG |
static com.google.common.collect.ImmutableMap<String,Checksum.ChecksumAlgorithm> |
CHECKSUM_TAG_TO_ALGORITHM |
model, modelContainer, node, refreshOnGet, resource| Constructor and Description |
|---|
Checksum(Checksum.ChecksumAlgorithm algorithm,
String checksumValue) |
Checksum(IModelContainer modelContainer,
org.apache.jena.graph.Node node) |
| Modifier and Type | Method and Description |
|---|---|
Checksum |
clone() |
int |
compareTo(Checksum compare) |
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
|
org.apache.jena.rdf.model.Resource |
findDuplicateResource(IModelContainer modelContainer,
String uri)
Search the model to see if there is a duplicate resource either based on the
URI or based on other information.
|
protected static org.apache.jena.rdf.model.Resource |
findSpdxChecksum(org.apache.jena.rdf.model.Model model,
Checksum checksum) |
Checksum.ChecksumAlgorithm |
getAlgorithm() |
void |
getPropertiesFromModel()
Fetch all of the properties from the model and populate the local Java properties
|
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.
|
String |
getValue() |
void |
populateModel()
Populate the RDF model from the Java properties
|
void |
setAlgorithm(Checksum.ChecksumAlgorithm algorithm) |
void |
setValue(String checksumValue) |
String |
toString() |
List<String> |
verify() |
addPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, arraysEquivalent, createResource, createResource, equals, 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, hashCode, 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 static final com.google.common.collect.ImmutableMap<Checksum.ChecksumAlgorithm,String> CHECKSUM_ALGORITHM_TO_TAG
public static final com.google.common.collect.ImmutableMap<String,Checksum.ChecksumAlgorithm> CHECKSUM_TAG_TO_ALGORITHM
public Checksum(Checksum.ChecksumAlgorithm algorithm, String checksumValue)
public Checksum(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisException
modelContainer - node - InvalidSPDXAnalysisExceptionprotected static org.apache.jena.rdf.model.Resource findSpdxChecksum(org.apache.jena.rdf.model.Model model,
Checksum checksum)
throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic void getPropertiesFromModel()
throws InvalidSPDXAnalysisException
RdfModelObjectgetPropertiesFromModel in class RdfModelObjectInvalidSPDXAnalysisExceptionpublic Checksum.ChecksumAlgorithm getAlgorithm()
public void setAlgorithm(Checksum.ChecksumAlgorithm algorithm) throws InvalidSPDXAnalysisException
algorithm - the algorithm to setInvalidSPDXAnalysisExceptionpublic String getValue()
public void setValue(String checksumValue)
checksumValue - the checksumValue to setpublic String getUri(IModelContainer modelContainer)
RdfModelObjectgetUri in class RdfModelObjectpublic org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)
getType in class RdfModelObjectpublic org.apache.jena.rdf.model.Resource findDuplicateResource(IModelContainer modelContainer, String uri) throws InvalidSPDXAnalysisException
RdfModelObjectfindDuplicateResource in class RdfModelObjectInvalidSPDXAnalysisExceptionpublic void populateModel()
throws InvalidSPDXAnalysisException
RdfModelObjectpopulateModel in class RdfModelObjectInvalidSPDXAnalysisExceptionpublic boolean equivalent(IRdfModel compare)
IRdfModelequivalent in interface IRdfModelpublic int compareTo(Checksum compare)
compareTo in interface Comparable<Checksum>Copyright © 2018 Linux Foundation. All Rights Reserved.