Class SpdxNoneElement

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

    public class SpdxNoneElement
    extends SpdxConstantElement
    This SPDX element represents no SPDX element at all. This element should only be used on the right hand side of relationships to represent no SPDX element is related to the subject. This element has no properties and a fixed ID of "NONE".
    Author:
    Gary O'Neall
    • Field Detail

      • NONE_ELEMENT_NAME

        public static final String NONE_ELEMENT_NAME
    • Constructor Detail

      • SpdxNoneElement

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

        public SpdxNoneElement​(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()