Class CweSet

java.lang.Object
org.owasp.dependencycheck.dependency.CweSet
All Implemented Interfaces:
Serializable

public class CweSet extends Object implements Serializable
Collection of CWEs with a pretty print implemented in the toString().
Author:
Jeremy Long
See Also:
  • Constructor Details

    • CweSet

      public CweSet()
  • Method Details

    • getEntries

      public Set<String> getEntries()
      Get the value of CWEs.
      Returns:
      the value of CWEs
    • addCwe

      public void addCwe(String cwe)
      Adds a CWE to the set.
      Parameters:
      cwe - new CWE to add
    • toString

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

      public Stream<String> stream()
      Streams the CWEs.
      Returns:
      the stream of CWE
    • getFullCwes

      public Map<String,String> getFullCwes()
      Returns a map of CWE-ID and title.
      Returns:
      a map of CWE-ID and title.
    • isEmpty

      public boolean isEmpty()
      Returns true if there are no CWEs; otherwise false.
      Returns:
      true if there are no CWEs; otherwise false