public class CompositeMatcherEditor<E> extends AbstractMatcherEditor<E>
MatcherEditor
composed of zero or more delegate MatcherEditor
s.MatcherEditor.Event<E>, MatcherEditor.Listener<E>
Modifier and Type | Field and Description |
---|---|
static int |
AND
require all matchers in the
MatcherEditor to match |
static int |
OR
require any matchers in the
MatcherEditor to match |
Constructor and Description |
---|
CompositeMatcherEditor()
Create a
CompositeMatcherEditor . |
CompositeMatcherEditor(EventList<MatcherEditor<E>> matcherEditors)
Create a
CompositeMatcherEditor that creates Matchers from the union of the specified
EventList of MatcherEditor s. |
Modifier and Type | Method and Description |
---|---|
EventList<MatcherEditor<E>> |
getMatcherEditors()
|
int |
getMode()
Get the match mode for this
CompositeMatcherEditor . |
void |
setMode(int mode)
Set the match mode for this
CompositeMatcherEditor . |
fireChanged, fireConstrained, fireMatchAll, fireMatchNone, fireRelaxed, getMatcher, isCurrentlyMatchingAll, isCurrentlyMatchingNone
addMatcherEditorListener, createChangedEvent, createConstrainedEvent, createMatchAllEvent, createMatchNoneEvent, createRelaxedEvent, fireChangedMatcher, removeMatcherEditorListener
public static final int AND
MatcherEditor
to matchpublic static final int OR
MatcherEditor
to matchpublic CompositeMatcherEditor(EventList<MatcherEditor<E>> matcherEditors)
CompositeMatcherEditor
that creates Matchers from the union of the specified
EventList
of MatcherEditor
s. The EventList
must not contain any
null
values and all elements must implement MatcherEditor
.public CompositeMatcherEditor()
CompositeMatcherEditor
.public EventList<MatcherEditor<E>> getMatcherEditors()
EventList
of MatcherEditor
s that make up this
CompositeMatcherEditor
. The EventList
must never contain any null
values and all elements must implement MatcherEditor
.public int getMode()
CompositeMatcherEditor
.CompositeMatcherEditor.AND
for match all
CompositeMatcherEditor.OR
for match any.public void setMode(int mode)
CompositeMatcherEditor
.mode
- either CompositeMatcherEditor.AND
to match all
CompositeMatcherEditor.OR
to match any.Copyright © 2024 levigo holding gmbh. All rights reserved.