java.lang.Object
com.vaadin.appsec.backend.model.osv.response.Package
All Implemented Interfaces:
Serializable

public class Package extends Object implements Serializable
DTO for the OSV API package property.
See Also:
  • Constructor Details

    • Package

      public Package()
      No args constructor for use in serialization.
    • Package

      public Package(String ecosystem, String name)
      Constructs Package with ecosystem and name.
      Parameters:
      ecosystem - The ecosystem for this package. For the complete list of valid ecosystem names, see ecosystems list
      name - Name of the package
    • Package

      public Package(String purl)
      Constructs Package with package URL.
      Parameters:
      purl - Package URL. Format scheme:type/namespace/name@version?qualifiers#subpath, see Package URL specification
  • Method Details

    • getEcosystem

      public String getEcosystem()
      Gets the ecosystem.
      Returns:
      the ecosystem
    • setEcosystem

      public void setEcosystem(String ecosystem)
      Sets the ecosystem.
      Parameters:
      ecosystem - the new ecosystem
    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the name.
      Parameters:
      name - the new name
    • getPurl

      public String getPurl()
      Gets the purl.
      Returns:
      the purl
    • setPurl

      public void setPurl(String purl)
      Sets the purl.
      Parameters:
      purl - the new purl
    • toString

      public String toString()
      Overrides:
      toString in class Object