Package org.spdx.library.model.license
Class CrossRef
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.license.CrossRef
public class CrossRef extends ModelObject
Cross reference details for the a URL reference
- Author:
- Gary O'Neall
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCrossRef.CrossRefBuilder -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description CrossRef()CrossRef(String id)protectedCrossRef(CrossRef.CrossRefBuilder builder)CrossRef(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) -
Method Summary
Modifier and Type Method Description protected List<String>_verify(Set<String> verifiedIds, String specVersion)Implementation of the specific verifications for this model objectOptional<Boolean>getIsWayBackLink()Optional<Boolean>getLive()Optional<String>getMatch()Optional<Integer>getOrder()Optional<String>getTimestamp()StringgetType()Optional<String>getUrl()Optional<Boolean>getValid()voidsetDetails(Boolean isValid, Boolean isLive, Boolean isWayBackLink, String match, String timestamp)Convenience method for setting details related to the URL checkingvoidsetIsWayBackLink(Boolean isWayBackLink)voidsetLive(Boolean isLive)voidsetMatch(String match)voidsetOrder(Integer order)voidsetTimestamp(String timestamp)voidsetUrl(String url)voidsetValid(Boolean isValid)StringtoString()Methods inherited from class org.spdx.library.model.ModelObject
addPropertyValueToCollection, addValueToCollection, clearValueCollection, clearValueCollection, clone, copyFrom, createAnnotation, createByteOffsetPointer, createChecksum, createConjunctiveLicenseSet, createCreationInfo, createCrossRef, createDisjunctiveLicenseSet, createExternalDocumentRef, createExternalRef, 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 InvalidSPDXAnalysisExceptionConvenience method for setting details related to the URL checking- Parameters:
isValid-isLive-isWayBackLink-match-timestamp-- Throws:
InvalidSPDXAnalysisException
-
toString
- Overrides:
toStringin classModelObject
-