Salt  3.4.2
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
org.corpus_tools.salt.extensions.notification.graph.impl.LayerNotifierImpl< N extends Node, R extends Relation< N, N > Class Template Reference

Inherits org.corpus_tools.salt.graph.impl.LayerImpl< N extends Node, R extends Relation< N, N >, org.corpus_tools.salt.graph.Layer< N extends Node, R extends Relation< N, N >, and org.corpus_tools.salt.extensions.notification.graph.Notifier.

Public Member Functions

List< ListenergetListener ()
 Returns an unmodifiable list of all listeners.If no listener is registered null is returned.
Returns
all registered listeners

 
synchronized void addListener (Listener listener)
 Adds a new listener, which then will be notified about a change in this object.
Parameters
listenerto be notified

 
void addListener (Collection< Listener > listener)
 Adds a set of new listener, which then will be notified about a change in this object.
Parameters
listenerto be notified

 
synchronized void removeListener (Listener listener)
 Removes a listener, which won't be notified about a change in this object anymore.
Parameters
listenerto be notified

 
void addLabel (Label label)
 Adds the given Label object to the list of labels.
Parameters
labelthe Label object to be added
Notifies all registered listeners.
 
void removeLabel (String qName)
 {@inheritDoc LabelableElement::removeLabel(String)} In case the passed qualified name is equal to SaltUtil#LABEL_ID_QNAME the internal reference to identifier is set to null. Notifies all registered listeners.
 
void removeAll ()
 {@inheritDoc LabelableElement::removeAll()} Notifies all registered listeners.
 
void addNode (N node)
 {@inheritDoc Layer::addNode(Node)}
 
void removeNode (N node)
 {@inheritDoc Layer::removeNode(Node)}
 
void addRelation (Relation<? extends N, ? extends N > relation)
 {@inheritDoc Layer::addRelation(Relation)}
 
void removeRelation (Relation<? extends N, ? extends N > relation)
 {@inheritDoc Layer::removeRelation(Relation)}
 
- Public Member Functions inherited from org.corpus_tools.salt.graph.impl.LayerImpl< N extends Node, R extends Relation< N, N >
 LayerImpl (Layer< N, R > delegate)
 Initializes an object of type Layer. More...
 
Graph getGraph ()
 {@inheritDoc Relation::getGraph()}
 
void setGraph (Graph graph)
 {@inheritDoc Relation::setGraph(Graph)}
 
Set< N > getNodes ()
 {@inheritDoc Layer::getNodes()}
 
Set< R > getRelations ()
 {@inheritDoc Layer::getRelations()}
 
- Public Member Functions inherited from org.corpus_tools.salt.graph.impl.IdentifiableElementImpl
 IdentifiableElementImpl (IdentifiableElement delegate)
 
Identifier getIdentifier ()
 {@inheritDoc IdentifiableElement::getIdentifier()}
 
void setIdentifier (Identifier identifier)
 {@inheritDoc IdentifiableElement::setIdentifier(Identifier)}
 
String getId ()
 {@inheritDoc IdentifiableElement::getId()}
 
void setId (String id)
 {@inheritDoc IdentifiableElement::setId(String)}
 
String toString ()
 
- Public Member Functions inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
 LabelableElementImpl (LabelableElement delegatee)
 Initializes a new object and sets an internal delegate. More...
 
Collection< LabelgetLabels ()
 {@inheritDoc LabelableElement::getLabels()}
 
Label getLabel (String qName)
 {@inheritDoc LabelableElement::getLabel(String)}
 
Label getLabel (String namespace, String name)
 {@inheritedDoc LabelableElement::getLabel(String, String)}
 
Set< LabelgetLabelsByNamespace (String namespace)
 {@inheritDoc LabelableElement::getLabelsByNamespace(String)}
 
void basicAddLabel (Label label)
 This is an internally used method. More...
 
void basicRemoveLabel (String qName)
 This is an internally used method. More...
 
void removeLabel (String namespace, String name)
 {@inheritDoc LabelableElement::removeLabel(String, String))}
 
boolean containsLabel (String qName)
 {@inheritDoc LabelableElement::containsLabel(String)}
 
Integer sizeLabels ()
 {@inheritDoc LabelableElement::sizeLabels()}
 

Protected Attributes

List< ListenerlistenerList = null
 
- Protected Attributes inherited from org.corpus_tools.salt.graph.impl.LayerImpl< N extends Node, R extends Relation< N, N >
Graph graph = null
 container graph
 
- Protected Attributes inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
LabelableElement delegate = null
 A delegate object of the same type. More...
 

Additional Inherited Members

- Static Public Attributes inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
static final int EXPECTED_NUMBER_OF_LABELS = 5
 Determines the expected number of labels.
 
- Protected Member Functions inherited from org.corpus_tools.salt.graph.impl.LayerImpl< N extends Node, R extends Relation< N, N >
Layer< N, R > getDelegate ()
 Returns the delegate object.If delegate is not null, all functions of this method are delegated to the delegate object. Setting delegate makes this object to a container.
Returns
the delegate object

 
void basicSetGraph (Graph graph)
 This is an internally used method. More...
 
void basicSetGraph_WithoutRemoving (Graph graph)
 Same as basicSetGraph(Graph) but does not remove this layer from old graph, if it was not equal to the passed graph. More...