Class SpdxNoAssertionElement

  • All Implemented Interfaces:
    org.spdx.core.IndividualUriValue

    public class SpdxNoAssertionElement
    extends SpdxConstantElement
    This SPDX element represents no assertion as to an actual SPDX element. This element should only be used on the right hand side of relationships to represent no assertion as to what element the subject is actually related to. This element has no properties and a fixed ID of "NOASSERTION".
    Author:
    Gary O'Neall
    • Constructor Detail

      • SpdxNoAssertionElement

        public SpdxNoAssertionElement()
                               throws org.spdx.core.InvalidSPDXAnalysisException
        Create a None element with default model store and document URI
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • SpdxNoAssertionElement

        public SpdxNoAssertionElement​(org.spdx.storage.IModelStore modelStore,
                                      String documentUri)
                               throws org.spdx.core.InvalidSPDXAnalysisException
        Parameters:
        modelStore - where the model is stored
        documentUri - Unique document URI
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
    • Method Detail

      • getName

        public Optional<String> getName()
                                 throws org.spdx.core.InvalidSPDXAnalysisException
        Overrides:
        getName in class SpdxElement
        Returns:
        the name
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • getComment

        public Optional<String> getComment()
                                    throws org.spdx.core.InvalidSPDXAnalysisException
        Overrides:
        getComment in class SpdxElement
        Returns:
        the comment
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • getIndividualURI

        public String getIndividualURI()