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, toArrayadd, listIterator, listIterator, remove, removeRange, set, subListclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected ObservablePatternMatchList()
ObservablePatternMatchCollectionBuilder
using the ObservablePatternMatchCollection interface.protected ObservablePatternMatchCollection<Match> getInternalCollection()
public void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class java.util.AbstractListpublic void dispose()
dispose in interface org.eclipse.core.databinding.observable.IObservabledispose in class org.eclipse.core.databinding.observable.list.AbstractObservableListpublic java.lang.Object getElementType()
protected int doGetSize()
doGetSize in class org.eclipse.core.databinding.observable.list.AbstractObservableListpublic java.lang.Object get(int index)
get in interface java.util.Listget in interface org.eclipse.core.databinding.observable.list.IObservableListget in class java.util.AbstractListpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in interface org.eclipse.core.databinding.observable.list.IObservableListiterator in class org.eclipse.core.databinding.observable.list.AbstractObservableListpublic RuleSpecification<Match> getSpecification()
public void setFilter(Match filter)
filter -