Package org.spdx.library.model.license
Class CrossRef
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.license.CrossRef
Cross reference details for the a URL reference
- Author:
- Gary O'Neall
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.spdx.library.model.ModelObject
strict -
Constructor Summary
ConstructorsModifierConstructorDescriptionCrossRef()protectedCrossRef(CrossRef.CrossRefBuilder builder) CrossRef(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) -
Method Summary
Modifier and TypeMethodDescriptionImplementation of the specific verifications for this model objectgetLive()getMatch()getOrder()getType()getUrl()getValid()voidConvenience method for setting details related to the URL checkingvoidsetIsWayBackLink(Boolean isWayBackLink) voidvoidvoidvoidsetTimestamp(String timestamp) voidvoidtoString()Methods inherited from class org.spdx.library.model.ModelObject
addPropertyValueToCollection, addValueToCollection, clearValueCollection, clearValueCollection, clone, copyFrom, createAnnotation, createByteOffsetPointer, createChecksum, createConjunctiveLicenseSet, createCreationInfo, createCrossRef, createDisjunctiveLicenseSet, createExternalDocumentRef, createExternalRef, createExtractedLicense, createLineCharPointer, createPackage, createPackageVerificationCode, createRelationship, createSpdxFile, createSpdxSnippet, createStartEndPointer, enterCriticalSection, equals, equivalent, equivalent, getAnyLicenseInfoPropertyValue, getBooleanPropertyValue, getCopyManager, getDocumentUri, getElementPropertyValue, getEnumPropertyValue, getId, getIntegerPropertyValue, getModelStore, getObjectPropertyValue, getObjectPropertyValue, getObjectPropertyValueCollection, getObjectPropertyValueSet, getPropertyValueNames, getStringCollection, getStringPropertyValue, hashCode, idToIdType, isCollectionMembersAssignableTo, isStrict, leaveCriticalSection, removeProperty, removeProperty, removePropertyValueFromCollection, removePropertyValueFromCollection, replacePropertyValueCollection, setCopyManager, setPropertyValue, setPropertyValue, setStrict, toTypedValue, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verify, verifyCollection
-
Constructor Details
-
CrossRef
- Throws:
InvalidSPDXAnalysisException
-
CrossRef
- Parameters:
id-- Throws:
InvalidSPDXAnalysisException
-
CrossRef
public CrossRef(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) throws InvalidSPDXAnalysisException - Parameters:
modelStore-documentUri-id-copyManager-create-- Throws:
InvalidSPDXAnalysisException
-
CrossRef
- Parameters:
builder- Builder to build the file- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
getType
- Specified by:
getTypein classModelObject- Returns:
- The class name for this object. Class names are defined in the constants file
-
_verify
Description copied from class:ModelObjectImplementation of the specific verifications for this model object- Specified by:
_verifyin classModelObject- Parameters:
verifiedIds- list of all Element Id's which have already been verified - prevents infinite recursionspecVersion- Version of the SPDX spec to verify against- Returns:
- Any verification errors or warnings associated with this object
-
getMatch
- Returns:
- the match
- Throws:
InvalidSPDXAnalysisException
-
setMatch
- Parameters:
match- the match to set- Throws:
InvalidSPDXAnalysisException
-
getUrl
- Returns:
- the url
- Throws:
InvalidSPDXAnalysisException
-
setUrl
- Parameters:
url- the url to set- Throws:
InvalidSPDXAnalysisException
-
getValid
- Returns:
- the isValid
- Throws:
InvalidSPDXAnalysisException
-
setValid
- Parameters:
isValid- the isValid to set- Throws:
InvalidSPDXAnalysisException
-
getLive
- Returns:
- the isLive
- Throws:
InvalidSPDXAnalysisException
-
setLive
- Parameters:
isLive- the isLive to set- Throws:
InvalidSPDXAnalysisException
-
getTimestamp
- Returns:
- the timestamp
- Throws:
InvalidSPDXAnalysisException
-
setTimestamp
- Parameters:
timestamp- the timestamp to set- Throws:
InvalidSPDXAnalysisException
-
getIsWayBackLink
- Returns:
- the isWayBackLink
- Throws:
InvalidSPDXAnalysisException
-
setIsWayBackLink
- Parameters:
isWayBackLink- the isWayBackLink to set- Throws:
InvalidSPDXAnalysisException
-
getOrder
- Returns:
- the order
- Throws:
InvalidSPDXAnalysisException
-
setOrder
- Parameters:
order- the order to set- Throws:
InvalidSPDXAnalysisException
-
setDetails
public void setDetails(@Nullable Boolean isValid, @Nullable Boolean isLive, @Nullable Boolean isWayBackLink, @Nullable String match, @Nullable String timestamp) throws InvalidSPDXAnalysisException Convenience method for setting details related to the URL checking- Parameters:
isValid-isLive-isWayBackLink-match-timestamp-- Throws:
InvalidSPDXAnalysisException
-
toString
- Overrides:
toStringin classModelObject
-