Package org.yamcs.http.api
Class EventFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeItem
(Tuple tuple) Called for each new item, before any comparisons.protected boolean
matchesLiteral
(Tuple tuple, String lowercaseLiteral) Implementatinos must search the provided item for the given literal in a manner that makes sense to the type of item.Methods inherited from class org.yamcs.utils.parser.Filter
addBinaryField, addBooleanField, addEnumField, addNumberField, addPrefixField, addStringField, includesTextSearch, isQueryField, matches, parse, printExpression
-
Constructor Details
-
EventFilter
- Throws:
ParseException
UnknownFieldException
-
-
Method Details
-
beforeItem
Description copied from class:Filter
Called for each new item, before any comparisons.The default implementation does nothing, concrete classes may override to hook any initialization logic.
- Overrides:
beforeItem
in classFilter<Tuple>
-
matchesLiteral
Description copied from class:Filter
Implementatinos must search the provided item for the given literal in a manner that makes sense to the type of item. Search should be exact and case-insensitive.- Specified by:
matchesLiteral
in classFilter<Tuple>
- Parameters:
tuple
- Item to matchlowercaseLiteral
- A search string. Always lowercase.
-