Class GenericSpdxElement


  • public class GenericSpdxElement
    extends SpdxElement
    Generic SPDX element - primarily used for testing
    Author:
    Gary O'Neall
    • Constructor Detail

      • GenericSpdxElement

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

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

        public GenericSpdxElement​(org.spdx.storage.IModelStore modelStore,
                                  String documentUri,
                                  String id,
                                  @Nullable
                                  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