Closed lunbin closed 10 months ago
in my spdx json file, my relationships like this:
"relationships" : [ { "spdxElementId" : "SPDXRef-DOCUMENT", "relatedSpdxElement" : "SPDXRef-Package", "relationshipType" : "CONTAINS" } ]
after deserialize to spdxDocument,, when i got one relationship, i can not get spdxElementId, when i call getId function, return the relationship id, not SPDXRef-DOCUMENT
spdxElementId
SPDXRef-DOCUMENT
please help me. thank you!
@pmonks @goneall @zvr @hboutemy
@lunbin - The element ID is the ID of the relatedSpdxElement, so you can get the related element ID by calling getRelatedSpdxElement().get().getId().
relatedSpdxElement
getRelatedSpdxElement().get().getId()
in my spdx json file, my relationships like this:
after deserialize to spdxDocument,, when i got one relationship, i can not get
spdxElementId
, when i call getId function, return the relationship id, notSPDXRef-DOCUMENT
please help me. thank you!