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 .
|
This interface defines a container to hold Label objects and makes them accessible. More...
Inherits Serializable.
Inherited by org.corpus_tools.salt.core.SAnnotationContainer, org.corpus_tools.salt.graph.IdentifiableElement, org.corpus_tools.salt.graph.impl.LabelableElementImpl, and org.corpus_tools.salt.graph.Label.
Public Member Functions | |
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... | |
This interface defines a container to hold Label objects and makes them accessible.
When a label is added to another container, it is removed from it's former container.
void org.corpus_tools.salt.graph.LabelableElement.addLabel | ( | Label | label | ) |
Adds the given Label object to the list of labels.
label | the Label object to be added |
Implemented in org.corpus_tools.salt.core.impl.SLayerImpl, org.corpus_tools.salt.graph.impl.LabelableElementImpl, org.corpus_tools.salt.extensions.notification.graph.impl.GraphNotifierImpl< N extends Node, R extends Relation< N, N, L extends Layer< N, R >, org.corpus_tools.salt.extensions.notification.graph.impl.NodeNotifierImpl, org.corpus_tools.salt.extensions.notification.graph.impl.RelationNotifierImpl< S extends Node, T extends Node >, org.corpus_tools.salt.extensions.notification.graph.impl.LayerNotifierImpl< N extends Node, R extends Relation< N, N >, and org.corpus_tools.salt.extensions.notification.graph.impl.LabelNotifierImpl.
boolean org.corpus_tools.salt.graph.LabelableElement.containsLabel | ( | String | qName | ) |
Checks if this object has a Label object in its list having the given qualified name.
fullName | the full qualified name of the label to be looked for |
Implemented in org.corpus_tools.salt.graph.impl.LabelableElementImpl.
Label org.corpus_tools.salt.graph.LabelableElement.getLabel | ( | String | namespace, |
String | name | ||
) |
Returns a label having the passed namespace and name, if such a label is contained by this object.
namespace | namespace of the Label to be searched for |
name | name of the Label to be searched for |
Implemented in org.corpus_tools.salt.graph.impl.LabelableElementImpl.
Label org.corpus_tools.salt.graph.LabelableElement.getLabel | ( | String | qName | ) |
Returns a label having the passed qualified name.
Therefore the qName is splitted into namespace and name.
qName | the qualified name to be splitted |
Implemented in org.corpus_tools.salt.graph.impl.LabelableElementImpl.
Collection<Label> org.corpus_tools.salt.graph.LabelableElement.getLabels | ( | ) |
Returns all labels being contained by this object.
Implemented in org.corpus_tools.salt.graph.impl.LabelableElementImpl.
Set<Label> org.corpus_tools.salt.graph.LabelableElement.getLabelsByNamespace | ( | String | namespace | ) |
Returns a set containing all Label objects having the given namespace.
If no such Label was found or the passed namespace was empty, an empty list is returned.
ns | the namespace of Label objects to be looked for. |
Implemented in org.corpus_tools.salt.graph.impl.LabelableElementImpl.
void org.corpus_tools.salt.graph.LabelableElement.removeLabel | ( | String | namespace, |
String | name | ||
) |
Removes a Label object from the list of labels of this object.
The Label object to be removed is identified by given namespace and name.
namespace | the namespace of the object to be removed |
name | the name of the object to be removed |
Implemented in org.corpus_tools.salt.graph.impl.LabelableElementImpl.
void org.corpus_tools.salt.graph.LabelableElement.removeLabel | ( | String | qName | ) |
Removes the label having the passed qName.
qName | qualified name of the Label to be removed |
Implemented in org.corpus_tools.salt.core.impl.SNodeImpl, org.corpus_tools.salt.core.impl.SGraphImpl, org.corpus_tools.salt.core.impl.SRelationImpl< S extends SNode, T extends SNode >, org.corpus_tools.salt.core.impl.SLayerImpl, org.corpus_tools.salt.graph.impl.LabelableElementImpl, org.corpus_tools.salt.extensions.notification.graph.impl.GraphNotifierImpl< N extends Node, R extends Relation< N, N, L extends Layer< N, R >, org.corpus_tools.salt.extensions.notification.graph.impl.NodeNotifierImpl, org.corpus_tools.salt.extensions.notification.graph.impl.RelationNotifierImpl< S extends Node, T extends Node >, org.corpus_tools.salt.extensions.notification.graph.impl.LayerNotifierImpl< N extends Node, R extends Relation< N, N >, org.corpus_tools.salt.graph.impl.IdentifiableElementImpl, and org.corpus_tools.salt.extensions.notification.graph.impl.LabelNotifierImpl.
Integer org.corpus_tools.salt.graph.LabelableElement.sizeLabels | ( | ) |
returns the number of Label objects contained by this object.
Implemented in org.corpus_tools.salt.graph.impl.LabelableElementImpl.