java.lang.Object
com.vaadin.appsec.backend.model.osv.response.Reference

public class Reference extends Object
DTO for the OSV API reference property.
  • Constructor Details

    • Reference

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

      public Reference(Reference.Type type, URI url)
      Instantiates a new reference.
      Parameters:
      type - the type
      url - the url
  • Method Details

    • getType

      public Reference.Type getType()
      Gets the type.
      Returns:
      the type
    • setType

      public void setType(Reference.Type type)
      Sets the type.
      Parameters:
      type - the new type
    • getUrl

      public URI getUrl()
      Gets the url.
      Returns:
      the url
    • setUrl

      public void setUrl(URI url)
      Sets the url.
      Parameters:
      url - the new url
    • toString

      public String toString()
      Overrides:
      toString in class Object