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 .
|
In graph theory a node is a placeholder, which can be related with other nodes via an relation. More...
Inherits org.corpus_tools.salt.graph.IdentifiableElement.
Inherited by org.corpus_tools.salt.core.SNode, org.corpus_tools.salt.extensions.notification.graph.impl.NodeNotifierImpl, and org.corpus_tools.salt.graph.impl.NodeImpl.
Public Member Functions | |
Graph | getGraph () |
Returns the container graph of this node. More... | |
void | setGraph (Graph graph) |
Sets the container graph of this node. More... | |
Set<? extends Layer > | getLayers () |
Returns all layers containing this node. More... | |
void | addLayer (Layer layer) |
Adds this node to the passed layer. More... | |
void | removeLayer (Layer layer) |
Removes this node from the passed layer. More... | |
Public Member Functions inherited from org.corpus_tools.salt.graph.IdentifiableElement | |
String | getId () |
Returns the id of this object, which is the value of the contained Identifier object. More... | |
void | setId (String id) |
Creates a new Identifier object and sets its value to the passed id. More... | |
Identifier | getIdentifier () |
Returns the Identifier label for this object. More... | |
void | setIdentifier (Identifier identifier) |
Sets the Identifier label for this object. More... | |
Public Member Functions inherited from org.corpus_tools.salt.graph.LabelableElement | |
Collection< Label > | getLabels () |
Returns all labels being contained by this object. More... | |
void | addLabel (Label label) |
Adds the given Label object to the list of labels. More... | |
Label | getLabel (String namespace, String name) |
Returns a label having the passed namespace and name, if such a label is contained by this object. More... | |
Label | getLabel (String qName) |
Returns a label having the passed qualified name. More... | |
void | removeLabel (String qName) |
Removes the label having the passed qName. More... | |
void | removeLabel (String namespace, String name) |
Removes a Label object from the list of labels of this object. More... | |
void | removeAll () |
Removes all Label objects. | |
Set< Label > | getLabelsByNamespace (String namespace) |
Returns a set containing all Label objects having the given namespace. More... | |
boolean | containsLabel (String qName) |
Checks if this object has a Label object in its list having the given qualified name. More... | |
Integer | sizeLabels () |
returns the number of Label objects contained by this object. More... | |
In graph theory a node is a placeholder, which can be related with other nodes via an relation.
The here defined node, is a labeled node, which means, it can contain a set of Labels. Am node always belong to 0..1 Graphs and can also be contained in one or more Layers.
void org.corpus_tools.salt.graph.Node.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.
layer | to which this node should be added |
Implemented in org.corpus_tools.salt.graph.impl.NodeImpl.
Graph org.corpus_tools.salt.graph.Node.getGraph | ( | ) |
Returns the container graph of this node.
Implemented in org.corpus_tools.salt.core.impl.SNodeImpl, org.corpus_tools.salt.common.impl.SDocumentImpl, org.corpus_tools.salt.common.SDocument, org.corpus_tools.salt.common.impl.SSequentialDSImpl< D, P extends Number >, org.corpus_tools.salt.graph.impl.NodeImpl, org.corpus_tools.salt.core.SNode, org.corpus_tools.salt.common.impl.SSpanImpl, org.corpus_tools.salt.common.impl.SStructureImpl, org.corpus_tools.salt.common.impl.STokenImpl, org.corpus_tools.salt.common.impl.SCorpusImpl, and org.corpus_tools.salt.common.SCorpus.
Set<? extends Layer> org.corpus_tools.salt.graph.Node.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.
Implemented in org.corpus_tools.salt.graph.impl.NodeImpl, org.corpus_tools.salt.core.impl.SNodeImpl, and org.corpus_tools.salt.core.SNode.
void org.corpus_tools.salt.graph.Node.removeLayer | ( | Layer | layer | ) |
Removes this node from the passed layer.
layer | from which this node should be removed |
Implemented in org.corpus_tools.salt.graph.impl.NodeImpl.
void org.corpus_tools.salt.graph.Node.setGraph | ( | Graph | graph | ) |
Sets the container graph of this node.
The passed graph and this node will be double chained, which means the method Graph#getNodes() will return a list containing this node.
graph | graph which contains this node |
Implemented in org.corpus_tools.salt.graph.impl.NodeImpl.