public class LayerNotifierImpl<N extends org.corpus_tools.salt.graph.Node,R extends org.corpus_tools.salt.graph.Relation<N,N>> extends org.corpus_tools.salt.graph.impl.LayerImpl<N,R> implements org.corpus_tools.salt.graph.Layer<N,R>, Notifier
| Modifier and Type | Field and Description |
|---|---|
protected List<Listener> |
listenerList |
| Constructor and Description |
|---|
LayerNotifierImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(org.corpus_tools.salt.graph.Label label)
Notifies all registered listeners.
|
void |
addListener(Collection<Listener> listener)
Adds a set of new listener, which then will be notified about a change in
this object.
|
void |
addListener(Listener listener)
Adds a new listener, which then will be notified about a change in this
object.
|
void |
addNode(N node) |
void |
addRelation(org.corpus_tools.salt.graph.Relation<? extends N,? extends N> relation) |
List<Listener> |
getListener()
Returns an unmodifiable list of all listeners.
|
void |
removeAll()
Notifies all registered listeners.
|
void |
removeLabel(String qName)
Notifies all registered listeners.
|
void |
removeListener(Listener listener)
Removes a listener, which won't be notified about a change in this object
anymore.
|
void |
removeNode(N node) |
void |
removeRelation(org.corpus_tools.salt.graph.Relation<? extends N,? extends N> relation) |
basicSetGraph_WithoutRemoving, basicSetGraph, getDelegate, getGraph, getNodes, getRelations, setGraphgetId, getIdentifier, setId, setIdentifier, toStringbasicAddLabel, basicRemoveLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeLabel, sizeLabelsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGraph, getNodes, getRelations, setGraphpublic List<Listener> getListener()
getListener in interface Notifierpublic void addListener(Listener listener)
addListener in interface Notifierlistener - to be notifiedpublic void addListener(Collection<Listener> listener)
addListener in interface Notifierlistener - to be notifiedpublic void removeListener(Listener listener)
removeListener in interface Notifierlistener - to be notifiedpublic void addLabel(org.corpus_tools.salt.graph.Label label)
addLabel in interface org.corpus_tools.salt.graph.LabelableElementaddLabel in class org.corpus_tools.salt.graph.impl.LabelableElementImplpublic void removeLabel(String qName)
removeLabel in interface org.corpus_tools.salt.graph.LabelableElementremoveLabel in class org.corpus_tools.salt.graph.impl.IdentifiableElementImplpublic void removeAll()
removeAll in interface org.corpus_tools.salt.graph.LabelableElementremoveAll in class org.corpus_tools.salt.graph.impl.LabelableElementImplpublic void addNode(N node)
addNode in interface org.corpus_tools.salt.graph.Layer<N extends org.corpus_tools.salt.graph.Node,R extends org.corpus_tools.salt.graph.Relation<N,N>>addNode in class org.corpus_tools.salt.graph.impl.LayerImpl<N extends org.corpus_tools.salt.graph.Node,R extends org.corpus_tools.salt.graph.Relation<N,N>>public void removeNode(N node)
removeNode in interface org.corpus_tools.salt.graph.Layer<N extends org.corpus_tools.salt.graph.Node,R extends org.corpus_tools.salt.graph.Relation<N,N>>removeNode in class org.corpus_tools.salt.graph.impl.LayerImpl<N extends org.corpus_tools.salt.graph.Node,R extends org.corpus_tools.salt.graph.Relation<N,N>>public void addRelation(org.corpus_tools.salt.graph.Relation<? extends N,? extends N> relation)
addRelation in interface org.corpus_tools.salt.graph.Layer<N extends org.corpus_tools.salt.graph.Node,R extends org.corpus_tools.salt.graph.Relation<N,N>>addRelation in class org.corpus_tools.salt.graph.impl.LayerImpl<N extends org.corpus_tools.salt.graph.Node,R extends org.corpus_tools.salt.graph.Relation<N,N>>public void removeRelation(org.corpus_tools.salt.graph.Relation<? extends N,? extends N> relation)
removeRelation in interface org.corpus_tools.salt.graph.Layer<N extends org.corpus_tools.salt.graph.Node,R extends org.corpus_tools.salt.graph.Relation<N,N>>removeRelation in class org.corpus_tools.salt.graph.impl.LayerImpl<N extends org.corpus_tools.salt.graph.Node,R extends org.corpus_tools.salt.graph.Relation<N,N>>Copyright © 2009–2016 Humboldt-Universität zu Berlin, INRIA. All rights reserved.