Salt
3.3.6-SNAPSHOT
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
|
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< Listener > | getListener () | ||
Returns an unmodifiable list of all listeners.If no listener is registered null is returned.
| |||
synchronized void | addListener (Listener listener) | ||
Adds a new listener, which then will be notified about a change in this object.
| |||
void | addListener (Collection< Listener > listener) | ||
Adds a set of new listener, which then will be notified about a change in this object.
| |||
synchronized void | removeListener (Listener listener) | ||
Removes a listener, which won't be notified about a change in this object anymore.
| |||
void | addLabel (Label label) | ||
Adds the given Label object to the list of labels.
| |||
void | removeLabel (String qName) | ||
Removes the label having the passed qName.
| |||
void | removeAll () | ||
Removes all Label objects. Notifies all registered listeners. | |||
void | addNode (N node) | ||
Adds the passed node to this layer. More... | |||
void | removeNode (N node) | ||
Removes the passed node from this layer. More... | |||
void | addRelation (Relation<?extends N,?extends N > relation) | ||
Adds the passed relation to this layer. More... | |||
void | removeRelation (Relation<?extends N,?extends N > relation) | ||
Removes the passed relation from this layer. More... | |||
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 () | ||
{ Relation::getGraph()} | |||
void | setGraph (Graph graph) | ||
{ Relation::setGraph(Graph)} | |||
Set< N > | getNodes () | ||
{ Layer::getNodes()} | |||
void | addNode (N node) | ||
{ Layer::addNode(Node)} | |||
void | removeNode (N node) | ||
{ Layer::removeNode(Node)} | |||
Set< R > | getRelations () | ||
{ Layer::getRelations()} | |||
void | addRelation (Relation<?extends N,?extends N > relation) | ||
{ Layer::addRelation(Relation)} | |||
void | removeRelation (Relation<?extends N,?extends N > relation) | ||
{ Layer::removeRelation(Relation)} | |||
Public Member Functions inherited from org.corpus_tools.salt.graph.impl.IdentifiableElementImpl | |||
IdentifiableElementImpl (IdentifiableElement delegate) | |||
Identifier | getIdentifier () | ||
{ IdentifiableElement::getIdentifier()} | |||
void | setIdentifier (Identifier identifier) | ||
{ IdentifiableElement::setIdentifier(Identifier)} | |||
void | removeLabel (String qName) | ||
Removes the label having the passed qName.
| |||
String | getId () | ||
{ IdentifiableElement::getId()} | |||
void | setId (String id) | ||
{ 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< Label > | getLabels () | ||
{ LabelableElement::getLabels()} | |||
Label | getLabel (String qName) | ||
{ LabelableElement::getLabel(String)} | |||
Label | getLabel (String namespace, String name) | ||
{ LabelableElement::getLabel(String, String)} | |||
Set< Label > | getLabelsByNamespace (String namespace) | ||
{ LabelableElement::getLabelsByNamespace(String)} | |||
void | addLabel (Label label) | ||
Adds the given Label object to the list of labels.
| |||
void | basicAddLabel (Label label) | ||
This is an internally used method. More... | |||
void | removeLabel (String qName) | ||
{ LabelableElement::removeLabel(String)} | |||
void | basicRemoveLabel (String qName) | ||
This is an internally used method. More... | |||
void | removeLabel (String namespace, String name) | ||
{ LabelableElement::removeLabel(String, String))} | |||
void | removeAll () | ||
{ LabelableElement::removeAll()} | |||
boolean | containsLabel (String qName) | ||
{ LabelableElement::containsLabel(String)} | |||
Integer | sizeLabels () | ||
{ LabelableElement::sizeLabels()} | |||
Protected Attributes | |
List< Listener > | listenerList = 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. More... | |
Protected Member Functions inherited from org.corpus_tools.salt.graph.impl.LayerImpl< N extends Node, R extends Relation< N, N > | |
Layer< N, R > | getDelegate () |
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... | |
Protected Member Functions inherited from org.corpus_tools.salt.graph.impl.IdentifiableElementImpl | |
IdentifiableElement | getDelegate () |
Protected Member Functions inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl | |
LabelableElement | getDelegate () |
Returns the delegate object. More... | |
void org.corpus_tools.salt.extensions.notification.graph.impl.LayerNotifierImpl< N extends Node, R extends Relation< N, N >.addNode | ( | N | node | ) |
Adds the passed node to this layer.
The insertion order is preserved. If this layer is contained by a graph, the passed node is also added to the graph in case it was not already contained in the graph.
node | node to be inserted into this layer |
Implements org.corpus_tools.salt.graph.Layer< N extends Node, R extends Relation< N, N >.
void org.corpus_tools.salt.extensions.notification.graph.impl.LayerNotifierImpl< N extends Node, R extends Relation< N, N >.addRelation | ( | Relation<?extends N,?extends N > | relation | ) |
Adds the passed relation to this layer.
The insertion order is preserved. If this layer is contained by a graph, the passed relation is also added to the graph in case it was not already contained in the graph.
relation | relation to be inserted into this layer |
Implements org.corpus_tools.salt.graph.Layer< N extends Node, R extends Relation< N, N >.
void org.corpus_tools.salt.extensions.notification.graph.impl.LayerNotifierImpl< N extends Node, R extends Relation< N, N >.removeNode | ( | N | node | ) |
Removes the passed node from this layer.
If the passed relation is null, nothing is done.
node | to be removed |
Implements org.corpus_tools.salt.graph.Layer< N extends Node, R extends Relation< N, N >.
void org.corpus_tools.salt.extensions.notification.graph.impl.LayerNotifierImpl< N extends Node, R extends Relation< N, N >.removeRelation | ( | Relation<?extends N,?extends N > | relation | ) |
Removes the passed relation from this layer.
If the passed relation is null, nothing is done.
relation | to be removed |
Implements org.corpus_tools.salt.graph.Layer< N extends Node, R extends Relation< N, N >.