Skip to content
jpgcc edited this page Dec 29, 2014 · 3 revisions

OrMessageFilter

This feedback message filter matches messages that are matched by at least one of the added filters (thus implementing a logical OR operation) — thus allowing one to flexibly compose existing filters.

How to use

The filters to be composed can be provided in the constructor:

IFeedbackMessageFilter filter = new OrMessageFilter(
     new ComponentFeedbackMessageFilter(someComponent),
     new ComponentFeedbackMessageFilter(someOtherComponent)
);

or they can be added (chaining supported):

IFeedbackMessageFilter filter = new OrMessageFilter()
    .add(new ComponentFeedbackMessageFilter(someComponent))
    .add(new ComponentFeedbackMessageFilter(someOtherComponent));

See also

AndMessageFilter

Clone this wiki locally