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 .
|
Inherits org.corpus_tools.salt.graph.impl.LayerImpl< N extends Node, R extends Relation< N, N >, and org.corpus_tools.salt.core.SLayer.
Public Member Functions | |||||||
SLayerImpl () | |||||||
Initializes an object of type SLayerImpl. | |||||||
SLayerImpl (Layer delegate) | |||||||
Initializes an object of type SLayerImpl. More... | |||||||
SAnnotation | createAnnotation (String namespace, String name, Object value) | ||||||
Creates and returns an annotation having the passed namespace, name and value.
| |||||||
Set< SAnnotation > | createAnnotations (String annotationString) | ||||||
This method parses the given annotation String and adds an SAnnotation object for each annotation being contained in that string to the given SAnnotationContainer object.The syntax for Annotations is: (SNS::)?SNAME(=SVALUE)?(;SNS::SNAME=SVALUE)+ where SNS is the namespace of the annotation, SNAME is its name and SVALUE is the value of the annotation
| |||||||
void | addAnnotation (SAnnotation annotation) | ||||||
Adds the passed annotation to this container.
| |||||||
SAnnotation | getAnnotation (String qName) | ||||||
Returns an annotation having the passed qualified name, if this container contains such an annotation.
| |||||||
SAnnotation | getAnnotation (String namespace, String name) | ||||||
Returns an annotation having the passed qualified name, if this container contains such an annotation.
| |||||||
Iterator< SAnnotation > | iterator_SAnnotation () | ||||||
Returns an iterator to iterate over the SAnnotation objects contained by this container.Using an iterator is slightly faster than getAnnotations().
| |||||||
void | addMetaAnnotation (SMetaAnnotation metaAnnotation) | ||||||
Adds the passed meta annotation to this container.
| |||||||
SMetaAnnotation | createMetaAnnotation (String namespace, String name, Object value) | ||||||
Creates and returns a meta annotation having the passed namespace, name and value.
| |||||||
Set< SMetaAnnotation > | createMetaAnnotations (String annotationString) | ||||||
This method parses the given meta annotation String and adds an SMetaAnnotation object for each meta annotation being contained in that string to the given SAnnotationContainer object.The syntax for meta annotations is: (SNS::)?SNAME(=SVALUE)?(;SNS::SNAME=SVALUE)+ where SNS is the namespace of the meta annotation, SNAME is its name and SVALUE is the value of the meta annotation
| |||||||
SMetaAnnotation | getMetaAnnotation (String qName) | ||||||
Returns a meta annotation having the passed qualified name, if this container contains such a meta annotation. More... | |||||||
Iterator< SMetaAnnotation > | iterator_SMetaAnnotation () | ||||||
Returns an iterator to iterate over the SMetaAnnotation objects contained by this container. More... | |||||||
SProcessingAnnotation | createProcessingAnnotation (String namespace, String name, Object value) | ||||||
Creates and returns a processing-annotation having the passed namespace, name and value.
| |||||||
Set< SProcessingAnnotation > | createProcessingAnnotations (String annotationString) | ||||||
This method parses the given processing-annotation String and adds an SProcessingAnnotation object for each processing-annotation being contained in that string to the given SAnnotationContainer object.The syntax for processing-annotations is: (SNS::)?SNAME(=SVALUE)?(;SNS::SNAME=SVALUE)+ where SNS is the namespace of the processing-annotation, SNAME is its name and SVALUE is the value of the processing-annotation
| |||||||
void | addProcessingAnnotation (SProcessingAnnotation annotation) | ||||||
Adds the passed processing-annotation to this container.
| |||||||
SProcessingAnnotation | getProcessingAnnotation (String qName) | ||||||
Returns a processing-annotation having the passed qualified name, if this container contains such a processing-annotation.
| |||||||
Iterator< SProcessingAnnotation > | iterator_SProcessingAnnotation () | ||||||
Returns an iterator to iterate over the SProcessingAnnotation objects contained by this container.Using an iterator is slightly faster than getProcessingAnnotations().
| |||||||
SFeature | createFeature (String namespace, String name, Object value) | ||||||
Creates and returns an feature having the passed namespace, name and value.
| |||||||
Set< SFeature > | createFeatures (String featureString) | ||||||
This method parses the given feature String and adds an SFeature object for each feature being contained in that string to the given SAnnotationContainer object.The syntax for Features is: (SNS::)?SNAME(=SVALUE)?(;SNS::SNAME=SVALUE)+ where SNS is the namespace of the feature, SNAME is its name and SVALUE is the value of the feature
| |||||||
void | addFeature (SFeature feature) | ||||||
Adds the passed feature to this container.
| |||||||
SFeature | getFeature (String qName) | ||||||
Returns an feature having the passed qualified name, if this container contains such an feature.
| |||||||
SFeature | getFeature (String namespace, String name) | ||||||
Returns an feature having the passed qualified name, if this container contains such an feature.
| |||||||
Iterator< SFeature > | iterator_SFeature () | ||||||
Returns an iterator to iterate over the SFeature objects contained by this container.Using an iterator is slightly faster than getFeatures().
| |||||||
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. In case the passed qualified name is equal to SaltUtil#LABEL_ID_QNAME the internal reference to identifier is set to null. | |||||||
String | getName () | ||||||
Returns the name of this element.The name of the element is not the identifier of the element. The identifier is given by the graph and constructed as a URI, where the name is used as fragment. If this is not unique, the graph will add a number to the fragment to make it unique.
| |||||||
void | setName (String name) | ||||||
Sets the name of the element.The name of the element is not the identifier of the element. The identifier is given by the graph and constructed as a URI, where the name is used as fragment. If this is not unique, the graph will add a number to the fragment to make it unique.
| |||||||
void | addLabel (Label label) | ||||||
Filters adding of name SFeature for name. | |||||||
String | toString () | ||||||
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()} | |||||||
void | addNode (N node) | ||||||
{@inheritDoc Layer::addNode(Node)} | |||||||
void | removeNode (N node) | ||||||
{@inheritDoc Layer::removeNode(Node)} | |||||||
Set< R > | getRelations () | ||||||
{@inheritDoc Layer::getRelations()} | |||||||
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.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)} | |||||||
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 () | ||||||
{@inheritDoc LabelableElement::getLabels()} | |||||||
Label | getLabel (String qName) | ||||||
{@inheritDoc LabelableElement::getLabel(String)} | |||||||
Label | getLabel (String namespace, String name) | ||||||
{@inheritedDoc LabelableElement::getLabel(String, String)} | |||||||
Set< Label > | getLabelsByNamespace (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))} | |||||||
void | removeAll () | ||||||
{@inheritDoc LabelableElement::removeAll()} | |||||||
boolean | containsLabel (String qName) | ||||||
{@inheritDoc LabelableElement::containsLabel(String)} | |||||||
Integer | sizeLabels () | ||||||
{@inheritDoc LabelableElement::sizeLabels()} | |||||||
Protected Attributes | |
SFeature | name = null |
The feature object containing the name of the node. | |
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.
| |
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... | |
org.corpus_tools.salt.core.impl.SLayerImpl.SLayerImpl | ( | Layer | delegate | ) |
Initializes an object of type SLayerImpl.
If delegate is not null, all functions of this method are delegated to the delegate object. Setting delegate makes this object to a container.
a | delegate object of the same type. |
SMetaAnnotation org.corpus_tools.salt.core.impl.SLayerImpl.getMetaAnnotation | ( | String | qName | ) |
Returns a meta annotation having the passed qualified name, if this container contains such a meta annotation.
qName | the qualified of the meta annotation. A qualified name consists of: namespace+'::'+name |
Implements org.corpus_tools.salt.core.SAnnotationContainer.
Iterator<SMetaAnnotation> org.corpus_tools.salt.core.impl.SLayerImpl.iterator_SMetaAnnotation | ( | ) |
Returns an iterator to iterate over the SMetaAnnotation objects contained by this container.
Using an iterator is slightly faster than getMetaAnnotations().
Implements org.corpus_tools.salt.core.SAnnotationContainer.