Package org.spdx.library.model.license
Class CrossRef.CrossRefBuilder
java.lang.Object
org.spdx.library.model.license.CrossRef.CrossRefBuilder
- Enclosing class:
- CrossRef
public static class CrossRef.CrossRefBuilder extends Object
-
Constructor Summary
Constructors Constructor Description CrossRefBuilder(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, String url)Create a CrossRef with the required parameters -
Method Summary
Modifier and Type Method Description CrossRefbuild()CrossRef.CrossRefBuildersetLive(Boolean live)CrossRef.CrossRefBuildersetMatch(String match)CrossRef.CrossRefBuildersetOrder(Integer order)CrossRef.CrossRefBuildersetTimestamp(String timestamp)CrossRef.CrossRefBuildersetUrl(String url)CrossRef.CrossRefBuildersetValid(Boolean valid)CrossRef.CrossRefBuildersetWayBackLink(Boolean wayBackLink)
-
Constructor Details
-
CrossRefBuilder
public CrossRefBuilder(IModelStore modelStore, String documentUri, String id, @Nullable ModelCopyManager 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 Details
-
setMatch
-
setUrl
- Parameters:
url- the url to set
-
setValid
- Parameters:
valid- the valid to set
-
setLive
- Parameters:
live- the live to set
-
setTimestamp
- Parameters:
timestamp- the timestamp to set
-
setWayBackLink
- Parameters:
wayBackLink- the wayBackLink to set
-
setOrder
- Parameters:
order- the order to set
-
build
- Returns:
- CrossRef built from the supplied parameters
- Throws:
InvalidSPDXAnalysisException
-