Class WeaknessCatalog

java.lang.Object
edu.umd.cs.findbugs.cwe.WeaknessCatalog

public class WeaknessCatalog extends Object
The weakness catalog contains a number of weaknesses
Author:
Jeremias Eppler
See Also:
  • Method Details

    • getInstance

      public static WeaknessCatalog getInstance()
      Returns:
      a weakness catalog instance
    • getVersion

      public String getVersion()
      Returns:
      CWE Version
    • getName

      public String getName()
      Returns:
      name of the weakness catalog (usually: CWE)
    • getReleaseDate

      public LocalDate getReleaseDate()
      Returns:
      the release date of the CWE version
    • getWeaknessByCweIdOrNull

      public Weakness getWeaknessByCweIdOrNull(int cweid)
      Get the a weakness by CWE ID
      Parameters:
      cweid - the CWE ID of the weakness
      Returns:
      a copy of the weakness or null