Package org.spdx.rdfparser.license
Class CrossRef
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.license.CrossRef
public class CrossRef extends RdfModelObject
Cross reference details for the a URL reference
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.rdfparser.model.RdfModelObject
model, modelContainer, node, refreshOnGet, resource
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equivalent(IRdfModel compare)
Returns true if the compare object contains properties which would be equal if they were contained in the same RDF ModelString
getMatch()
Integer
getOrder()
void
getPropertiesFromModel()
Fetch all of the properties from the model and populate the local Java propertiesString
getTimestamp()
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
getUrl()
Boolean
isLive()
Boolean
isValid()
Boolean
isWayBackLink()
void
populateModel()
Populate the RDF model from the Java propertiesvoid
setDetails(Boolean isValid, Boolean isLive, Boolean isWayBackLink, String match, String timestamp)
Convenience method for setting details related to the URL checkingvoid
setIsLive(Boolean isLive)
void
setIsValid(Boolean isValid)
void
setIsWayBackLink(Boolean isWayBackLink)
void
setMatch(String match)
void
setOrder(Integer order)
void
setTimestamp(String timestamp)
void
setUrl(String url)
String
toString()
List<String>
verify()
Methods inherited from class org.spdx.rdfparser.model.RdfModelObject
addPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, arraysEquivalent, createResource, createResource, equals, equivalentConsideringNull, findAnnotationPropertyValues, findAnyLicenseInfoPropertyValue, findAnyLicenseInfoPropertyValues, findChecksumPropertyValue, findCreationInfoPropertyValue, findDuplicateResource, findElementPropertyValue, findExternalDocRefPropertyValues, findExternalDocRefPropertyValues, findExternalRefPropertyValues, findIntPropertyValue, findMultipleChecksumPropertyValues, findMultipleCrossRefPropertyValues, 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, SetPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setSingleObjectForSameNode
-
Constructor Details
-
CrossRef
public CrossRef(String url, @Nullable Boolean isValid, @Nullable Boolean isLive, @Nullable Boolean isWayBackLink, @Nullable String match, @Nullable String timestamp, @Nullable Integer order)- Parameters:
url
- SeeAlso URL which relates to a licenseisValid
- true if the URL is a valid URLisLive
- true if the web page is accessible on the public internetisWayBackLink
- true if the URL is a Wayback machine linkmatch
- true if the website contains license text which matches the cross referencetimestamp
- datetime when the Cross ref detailed information was generatedorder
- the order in which this cross ref should be displayed - 0 being displayed first
-
CrossRef
public CrossRef(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisException- Parameters:
modelContainer
-node
-- Throws:
InvalidSPDXAnalysisException
-
CrossRef
All null details
-
-
Method Details
-
verify
- Returns:
- List of validation errors for any non SPDX compliant properties.
-
equivalent
Description copied from interface:IRdfModel
Returns true if the compare object contains properties which would be equal if they were contained in the same RDF Model- Returns:
-
getPropertiesFromModel
Description copied from class:RdfModelObject
Fetch all of the properties from the model and populate the local Java properties- Specified by:
getPropertiesFromModel
in classRdfModelObject
- Throws:
InvalidSPDXAnalysisException
-
getUri
Description copied from class:RdfModelObject
Get the URI for this RDF object. Null if this is for an anonomous node.- Specified by:
getUri
in classRdfModelObject
- Returns:
- Throws:
InvalidSPDXAnalysisException
-
getType
public org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)- Specified by:
getType
in classRdfModelObject
- Returns:
- the RDF class name for the object
-
populateModel
Description copied from class:RdfModelObject
Populate the RDF model from the Java properties- Specified by:
populateModel
in classRdfModelObject
- Throws:
InvalidSPDXAnalysisException
-
getMatch
- Returns:
- the match
-
setMatch
- Parameters:
match
- the match to set
-
getUrl
- Returns:
- the url
-
setUrl
- Parameters:
url
- the url to set
-
isValid
- Returns:
- the isValid
- Throws:
InvalidSPDXAnalysisException
-
setIsValid
- Parameters:
isValid
- the isValid to set
-
isLive
- Returns:
- the isLive
- Throws:
InvalidSPDXAnalysisException
-
setIsLive
- Parameters:
isLive
- the isLive to set
-
getTimestamp
- Returns:
- the timestamp
-
setTimestamp
- Parameters:
timestamp
- the timestamp to set
-
isWayBackLink
- Returns:
- the isWayBackLink
- Throws:
InvalidSPDXAnalysisException
-
setIsWayBackLink
- Parameters:
isWayBackLink
- the isWayBackLink to set
-
getOrder
- Returns:
- the order
- Throws:
InvalidSPDXAnalysisException
-
setOrder
- Parameters:
order
- the order to set
-
setDetails
public void setDetails(Boolean isValid, Boolean isLive, Boolean isWayBackLink, String match, String timestamp)Convenience method for setting details related to the URL checking- Parameters:
isValid
-isLive
-isWayBackLink
-match
-timestamp
-
-
toString
-