java.lang.Object
io.github.jeremylong.openvulnerability.client.ghsa.CWE
All Implemented Interfaces:
Serializable

public class CWE extends Object implements Serializable
Common weakness enumeration.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • node

      private CWE.CWERecord node
      The CWE record containing the CWE details.
  • Constructor Details

    • CWE

      public CWE()
  • Method Details

    • getCweId

      public String getCweId()
      Returns the id of the CWE.
      Returns:
      the id of the CWE
    • setCweId

      void setCweId(String cweId)
    • getDescription

      public String getDescription()
      Returns a detailed description of this CWE.
      Returns:
      a detailed description of this CWE.
    • setDescription

      void setDescription(String description)
    • getName

      public String getName()
      The name of this CWE.
      Returns:
      the name of this CWE.
    • setName

      void setName(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object