Class Oas31KeywordScanner.KeywordOccurrenceLedger
- java.lang.Object
-
- org.openapitools.codegen.languages.Oas31KeywordScanner.KeywordOccurrenceLedger
-
- Enclosing class:
- Oas31KeywordScanner
public static final class Oas31KeywordScanner.KeywordOccurrenceLedger extends Object
Ordered keyword occurrence ledger with status aggregation.
-
-
Constructor Summary
Constructors Constructor Description KeywordOccurrenceLedger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>emitted()Keywords with at least one EMITTED occurrence.Set<String>failClosed()Keywords with at least one FAIL_CLOSED occurrence.List<Oas31KeywordScanner.KeywordOccurrence>forKeyword(String keyword)Occurrences for one keyword, or an empty list when none.Set<String>getKeywords()All keywords with at least one occurrence.List<Oas31KeywordScanner.KeywordOccurrence>getOccurrences()All recorded occurrences, in discovery order.booleanhasKeyword(String keyword)Whether any occurrence was recorded for this keyword.intsize()Total number of recorded occurrences.List<Oas31KeywordScanner.KeywordOccurrence>withStatus(Oas31KeywordScanner.KeywordOccurrenceStatus status)Occurrences filtered by status.
-
-
-
Method Detail
-
getOccurrences
public List<Oas31KeywordScanner.KeywordOccurrence> getOccurrences()
All recorded occurrences, in discovery order.
-
forKeyword
public List<Oas31KeywordScanner.KeywordOccurrence> forKeyword(String keyword)
Occurrences for one keyword, or an empty list when none.
-
hasKeyword
public boolean hasKeyword(String keyword)
Whether any occurrence was recorded for this keyword.
-
withStatus
public List<Oas31KeywordScanner.KeywordOccurrence> withStatus(Oas31KeywordScanner.KeywordOccurrenceStatus status)
Occurrences filtered by status.
-
size
public int size()
Total number of recorded occurrences.
-
-