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.IdentifiableElementImpl, and org.corpus_tools.salt.graph.Node.
Inherited by org.corpus_tools.salt.core.impl.SNodeImpl, and org.corpus_tools.salt.extensions.notification.graph.impl.NodeNotifierImpl.
Public Member Functions | |||
NodeImpl () | |||
Initializes an object of type Node. | |||
NodeImpl (Node delegate) | |||
Initializes an object of type Node. More... | |||
Graph | getGraph () | ||
{ Relation::getGraph()} | |||
void | setGraph (Graph graph) | ||
{ Relation::setGraph(Graph)} | |||
Set<?extends Layer > | getLayers () | ||
Returns all layers containing this node.This is a computed set and only works, when this node is contained in a graph. If this list is used multiple times, it makes sense to store that set.
| |||
void | addLayer (Layer layer) | ||
Adds this node to the passed layer.If this node is not already contained in the layer's graph, it will be added to the graph.
Since the method getLayers() retrieves all layers by accessing the layers in graph, this class does not contain an own collection of layers. | |||
void | removeLayer (Layer layer) | ||
Removes this node from the passed layer.
Since the method getLayers() retrieves all layers by accessing the layers in graph, this class does not contain an own collection of layers. | |||
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 Member Functions | |
Node | getDelegate () |
Returns the delegate object. More... | |
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 node 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... | |
Protected Attributes | |
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... | |
org.corpus_tools.salt.graph.impl.NodeImpl.NodeImpl | ( | Node | delegate | ) |
|
protected |
This is an internally used method.
To implement a double chaining of Graph and Node object when an node is inserted into this graph and to avoid an endless invocation the insertion of an node is split into the two methods setGraph(Graph) and basicSetGraph(Graph). The invocation of methods is implement as follows:
Graph#addNode(Node) Node#setGraph(Graph) || \ / || || X || \/ / \ \/ Graph#basicAddNode(Node) Node#basicSetGraph(Graph)
That means method setGraph(Graph) calls basicSetGraph(Graph) and Graph#basicAddNode(Node). And method setGraph(Graph) calls Graph#basicAddNode(Node) and Node#basicSetGraph(Graph).
graph | graph which contains this node |
|
protected |
Same as basicSetGraph(Graph) but does not remove this node from old graph, if it was not equal to the passed graph.
graph |