public class ObservablePatternMatchList<Match extends IPatternMatch>
extends org.eclipse.core.databinding.observable.list.AbstractObservableList
ViatraQueryMatcher
on a model (match sets of an
ViatraQueryMatcher
are ordered by the order of their appearance).
For creating complex observable lists, use ObservablePatternMatchCollectionBuilder
.
This implementation uses the ExecutionSchema
to get notifications for match set changes, and can be
instantiated using either an existing ViatraQueryMatcher
, or an IQuerySpecification
and either a
ViatraQueryEngine
or ExecutionSchema
.
Note that a converter can be used for the list, in which case the type of list items may be different from the generic type parameter Match.
Modifier and Type | Class and Description |
---|---|
class |
ObservablePatternMatchList.ListCollectionUpdate |
Modifier | Constructor and Description |
---|---|
protected |
ObservablePatternMatchList()
Creates an observable list, that will be built be the
ObservablePatternMatchCollectionBuilder
using the ObservablePatternMatchCollection interface. |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
dispose() |
protected int |
doGetSize() |
java.lang.Object |
get(int index) |
java.lang.Object |
getElementType() |
protected ObservablePatternMatchCollection<Match> |
getInternalCollection() |
RuleSpecification<Match> |
getSpecification() |
java.util.Iterator |
iterator() |
void |
setFilter(Match filter)
Update the filter used by the observable during runtime.
|
add, addAll, addAll, addChangeListener, addDisposeListener, addListChangeListener, addStaleListener, checkRealm, contains, containsAll, equals, fireChange, fireListChange, fireStale, firstListenerAdded, getRealm, hashCode, hasListeners, indexOf, isDisposed, isEmpty, isStale, lastIndexOf, lastListenerRemoved, move, remove, removeAll, removeChangeListener, removeDisposeListener, removeListChangeListener, removeStaleListener, retainAll, size, toArray, toArray
add, listIterator, listIterator, remove, removeRange, set, subList
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected ObservablePatternMatchList()
ObservablePatternMatchCollectionBuilder
using the ObservablePatternMatchCollection
interface.protected ObservablePatternMatchCollection<Match> getInternalCollection()
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.AbstractList
public void dispose()
dispose
in interface org.eclipse.core.databinding.observable.IObservable
dispose
in class org.eclipse.core.databinding.observable.list.AbstractObservableList
public java.lang.Object getElementType()
protected int doGetSize()
doGetSize
in class org.eclipse.core.databinding.observable.list.AbstractObservableList
public java.lang.Object get(int index)
get
in interface java.util.List
get
in interface org.eclipse.core.databinding.observable.list.IObservableList
get
in class java.util.AbstractList
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
iterator
in interface org.eclipse.core.databinding.observable.list.IObservableList
iterator
in class org.eclipse.core.databinding.observable.list.AbstractObservableList
public RuleSpecification<Match> getSpecification()
public void setFilter(Match filter)
filter
-