Class ExternalMapInfo
java.lang.Object
org.spdx.library.conversion.ExternalMapInfo
Information about an ExternalMap captured from an ExternalDocumentRef
- Author:
- Gary O'Neall
-
Constructor Summary
ConstructorsConstructorDescriptionExternalMapInfo(String docRefId, String externalDocumentUri, Optional<org.spdx.library.model.v3_0_1.core.Hash> externalDocumentHash, Collection<org.spdx.library.model.v3_0_1.core.ExternalMap> docImports) -
Method Summary
Modifier and TypeMethodDescriptionorg.spdx.library.model.v3_0_1.core.ExternalMapaddExternalMap(String externalUri, org.spdx.storage.IModelStore modelStore) If the externalUri has not already been added, create an ExternalMap and add it to the docImportsCollection<org.spdx.library.model.v3_0_1.core.ExternalMap> Optional<org.spdx.library.model.v3_0_1.core.Hash>
-
Constructor Details
-
ExternalMapInfo
public ExternalMapInfo(String docRefId, String externalDocumentUri, Optional<org.spdx.library.model.v3_0_1.core.Hash> externalDocumentHash, Collection<org.spdx.library.model.v3_0_1.core.ExternalMap> docImports) - Parameters:
docRefId- ID of the ExternalDocRef from the SPDX Spec version 2 SPDX Document containing the referenceexternalDocumentUri- External document URI for the external document being referencedexternalDocumentHash- Optional Hash of the external SPDX documentdocImports- SPDX Spec version 3 collection of doc imports
-
-
Method Details
-
addExternalMap
public org.spdx.library.model.v3_0_1.core.ExternalMap addExternalMap(String externalUri, org.spdx.storage.IModelStore modelStore) throws org.spdx.core.InvalidSPDXAnalysisException If the externalUri has not already been added, create an ExternalMap and add it to the docImports- Parameters:
externalUri- External URI to addmodelStore- model store where the ExternalMap is to be stored- Returns:
- the existing or added External map
- Throws:
org.spdx.core.InvalidSPDXAnalysisException- on error creating the ExternalMap
-
getDocRefId
- Returns:
- the docRefId
-
getExternalDocumentUri
- Returns:
- the externalDocumentUri
-
getExternalDocumentHash
- Returns:
- the externalDocumentHash
-
getDocImports
- Returns:
- the docImports
-