Class GenericModelObject


  • public class GenericModelObject
    extends ModelObjectV2
    Generic model object - primarily used for testing. This model object does not implement any unique getters and setters nor does it implement any verification.
    Author:
    Gary O'Neall
    • Constructor Detail

      • GenericModelObject

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

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

        public GenericModelObject​(org.spdx.storage.IModelStore modelStore,
                                  String documentUri,
                                  String id,
                                  @Nullable
                                  org.spdx.core.IModelCopyManager copyManager,
                                  boolean create)
                           throws org.spdx.core.InvalidSPDXAnalysisException
        Parameters:
        modelStore -
        documentUri -
        id -
        copyManager -
        create -
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
    • Method Detail

      • getType

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

        protected List<String> _verify​(Set<String> verifiedIds,
                                       String specVersion)
        Description copied from class: ModelObjectV2
        Implementation of the specific verifications for this model object
        Specified by:
        _verify in class ModelObjectV2
        Parameters:
        verifiedIds - list of all Element Id's which have already been verified - prevents infinite recursion
        specVersion - Version of the SPDX spec to verify against
        Returns:
        Any verification errors or warnings associated with this object