Class CweSet
- java.lang.Object
- 
- org.owasp.dependencycheck.dependency.CweSet
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class CweSet extends java.lang.Object implements java.io.SerializableCollection of CWEs with a pretty print implemented in the toString().- Author:
- Jeremy Long
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description CweSet()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCwe(java.lang.String cwe)Adds a CWE to the set.java.util.Set<java.lang.String>getEntries()Get the value of CWEs.java.util.Map<java.lang.String,java.lang.String>getFullCwes()Returns a map of CWE-ID and title.booleanisEmpty()Returnstrueif there are no CWEs; otherwisefalse.java.util.stream.Stream<java.lang.String>stream()Streams the CWEs.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
getEntriespublic java.util.Set<java.lang.String> getEntries() Get the value of CWEs.- Returns:
- the value of CWEs
 
 - 
addCwepublic void addCwe(java.lang.String cwe) Adds a CWE to the set.- Parameters:
- cwe- new CWE to add
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
streampublic java.util.stream.Stream<java.lang.String> stream() Streams the CWEs.- Returns:
- the stream of CWE
 
 - 
getFullCwespublic java.util.Map<java.lang.String,java.lang.String> getFullCwes() Returns a map of CWE-ID and title.- Returns:
- a map of CWE-ID and title.
 
 - 
isEmptypublic boolean isEmpty() Returnstrueif there are no CWEs; otherwisefalse.- Returns:
- trueif there are no CWEs; otherwise- false
 
 
- 
 
-