Class Package
java.lang.Object
com.vaadin.appsec.backend.model.osv.response.Package
- All Implemented Interfaces:
Serializable
DTO for the OSV API package property.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Package
public Package()No args constructor for use in serialization. -
Package
ConstructsPackagewith ecosystem and name.- Parameters:
ecosystem- The ecosystem for this package. For the complete list of valid ecosystem names, see ecosystems listname- Name of the package
-
Package
ConstructsPackagewith package URL.- Parameters:
purl- Package URL. Format scheme:type/namespace/name@version?qualifiers#subpath, see Package URL specification
-
-
Method Details
-
getEcosystem
Gets the ecosystem.- Returns:
- the ecosystem
-
setEcosystem
Sets the ecosystem.- Parameters:
ecosystem- the new ecosystem
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
getPurl
Gets the purl.- Returns:
- the purl
-
setPurl
Sets the purl.- Parameters:
purl- the new purl
-
toString
-