Class GenericSpdxItem


  • public class GenericSpdxItem
    extends SpdxItem
    Generic SPDX item - primarily used for testing
    Author:
    Gary O'Neall
    • Constructor Detail

      • GenericSpdxItem

        public GenericSpdxItem()
                        throws org.spdx.core.InvalidSPDXAnalysisException
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • GenericSpdxItem

        public GenericSpdxItem​(String id)
                        throws org.spdx.core.InvalidSPDXAnalysisException
        Parameters:
        id - identifier
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • GenericSpdxItem

        public GenericSpdxItem​(org.spdx.storage.IModelStore modelStore,
                               String documentUri,
                               String id,
                               org.spdx.core.IModelCopyManager copyManager,
                               boolean create)
                        throws org.spdx.core.InvalidSPDXAnalysisException
        Parameters:
        modelStore - container which includes the model data
        documentUri - URI for the SPDX document containing the model data
        id - identifier
        copyManager - if non-null, allows for copying of any properties set which use other model stores or document URI's
        create - if true, create the license if it does not exist
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
    • Method Detail

      • getType

        public String getType()
        Specified by:
        getType in class org.spdx.core.CoreModelObject