Class CrossRef.CrossRefBuilder
- java.lang.Object
-
- org.spdx.library.model.v2.license.CrossRef.CrossRefBuilder
-
-
Constructor Summary
Constructors Constructor Description CrossRefBuilder(org.spdx.storage.IModelStore modelStore, String documentUri, String id, org.spdx.core.IModelCopyManager copyManager, String url)
Create a CrossRef with the required parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrossRef
build()
CrossRef.CrossRefBuilder
setLive(Boolean live)
CrossRef.CrossRefBuilder
setMatch(String match)
CrossRef.CrossRefBuilder
setOrder(Integer order)
CrossRef.CrossRefBuilder
setTimestamp(String timestamp)
CrossRef.CrossRefBuilder
setUrl(String url)
CrossRef.CrossRefBuilder
setValid(Boolean valid)
CrossRef.CrossRefBuilder
setWayBackLink(Boolean wayBackLink)
-
-
-
Constructor Detail
-
CrossRefBuilder
public CrossRefBuilder(org.spdx.storage.IModelStore modelStore, String documentUri, String id, @Nullable org.spdx.core.IModelCopyManager copyManager, String url)
Create a CrossRef with the required parameters- Parameters:
modelStore
- Storage for the model objectsdocumentUri
- SPDX Document URI for a document associated with this modelid
- ID for this object - must be unique within the SPDX documentcopyManager
- if non-null, allows for copying of any properties set which use other model stores or document URI'surl
- URL for the CrossRef
-
-
Method Detail
-
setMatch
public CrossRef.CrossRefBuilder setMatch(@Nullable String match)
-
setUrl
public CrossRef.CrossRefBuilder setUrl(String url)
- Parameters:
url
- the url to set
-
setValid
public CrossRef.CrossRefBuilder setValid(@Nullable Boolean valid)
- Parameters:
valid
- the valid to set
-
setLive
public CrossRef.CrossRefBuilder setLive(@Nullable Boolean live)
- Parameters:
live
- the live to set
-
setTimestamp
public CrossRef.CrossRefBuilder setTimestamp(@Nullable String timestamp)
- Parameters:
timestamp
- the timestamp to set
-
setWayBackLink
public CrossRef.CrossRefBuilder setWayBackLink(@Nullable Boolean wayBackLink)
- Parameters:
wayBackLink
- the wayBackLink to set
-
setOrder
public CrossRef.CrossRefBuilder setOrder(@Nullable Integer order)
- Parameters:
order
- the order to set
-
build
public CrossRef build() throws org.spdx.core.InvalidSPDXAnalysisException
- Returns:
- CrossRef built from the supplied parameters
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
-