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 booleanequivalent(IRdfModel compare)Returns true if the compare object contains properties which would be equal if they were contained in the same RDF ModelStringgetMatch()IntegergetOrder()voidgetPropertiesFromModel()Fetch all of the properties from the model and populate the local Java propertiesStringgetTimestamp()org.apache.jena.rdf.model.ResourcegetType(org.apache.jena.rdf.model.Model model)StringgetUri(IModelContainer modelContainer)Get the URI for this RDF object.StringgetUrl()BooleanisLive()BooleanisValid()BooleanisWayBackLink()voidpopulateModel()Populate the RDF model from the Java propertiesvoidsetDetails(Boolean isValid, Boolean isLive, Boolean isWayBackLink, String match, String timestamp)Convenience method for setting details related to the URL checkingvoidsetIsLive(Boolean isLive)voidsetIsValid(Boolean isValid)voidsetIsWayBackLink(Boolean isWayBackLink)voidsetMatch(String match)voidsetOrder(Integer order)voidsetTimestamp(String timestamp)voidsetUrl(String url)StringtoString()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:IRdfModelReturns 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:RdfModelObjectFetch all of the properties from the model and populate the local Java properties- Specified by:
getPropertiesFromModelin classRdfModelObject- Throws:
InvalidSPDXAnalysisException
-
getUri
Description copied from class:RdfModelObjectGet the URI for this RDF object. Null if this is for an anonomous node.- Specified by:
getUriin classRdfModelObject- Returns:
- Throws:
InvalidSPDXAnalysisException
-
getType
public org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)- Specified by:
getTypein classRdfModelObject- Returns:
- the RDF class name for the object
-
populateModel
Description copied from class:RdfModelObjectPopulate the RDF model from the Java properties- Specified by:
populateModelin 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
-