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.core.impl.SRelationImpl< S extends SNode, T extends SNode >, and org.corpus_tools.salt.common.SCorpusDocumentRelation.
Public Member Functions | |||||||
SCorpusDocumentRelationImpl () | |||||||
Initializes an object of type SCorpusDocumentRelationImpl. | |||||||
SCorpusDocumentRelationImpl (Relation delegate) | |||||||
Initializes an object of type SCorpusDocumentRelationImpl. More... | |||||||
Public Member Functions inherited from org.corpus_tools.salt.core.impl.SRelationImpl< S extends SNode, T extends SNode > | |||||||
SRelationImpl () | |||||||
Initializes an object of type SRelationImpl. | |||||||
SRelationImpl (Relation delegate) | |||||||
Initializes an object of type SRelationImpl. 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.
| |||||||
String | getType () | ||||||
Returns the type of this element.
| |||||||
void | setType (String type) | ||||||
Sets the type of this element.
| |||||||
URI | getPath () | ||||||
Returns the id of this object as a URI path If no Id exists, null is returned.
| |||||||
Set< SLayer > | getLayers () | ||||||
Returns all layers containing this relation. More... | |||||||
Public Member Functions inherited from org.corpus_tools.salt.graph.impl.RelationImpl< S extends Node, T extends Node > | |||||||
RelationImpl () | |||||||
Initializes an object of type Relation. | |||||||
RelationImpl (Relation< S, T > delegate) | |||||||
Initializes an object of type Relation. More... | |||||||
Relation< S, T > | getDelegate () | ||||||
{@inheritDoc Relation::getDelegate()} | |||||||
S | getSource () | ||||||
{@inheritDoc Relation::getSource()} | |||||||
void | setSource (S source) | ||||||
{@inheritDoc Relation::setSource(Node)} Notifies the graph, about the change of the source. | |||||||
T | getTarget () | ||||||
{@inheritDoc Relation::getTarget()} | |||||||
void | setTarget (T target) | ||||||
{@inheritDoc Relation::setTarget(Node)} Notifies the graph, about the change of the target. | |||||||
Graph | getGraph () | ||||||
{@inheritDoc Relation::getGraph()} | |||||||
void | setGraph (Graph graph) | ||||||
{@inheritDoc Relation::setGraph(Graph)} | |||||||
void | basicSetGraph_WithoutRemoving (Graph graph) | ||||||
Same as basicSetGraph(Graph) but does not remove this relation from old graph, if it was not equal to the passed graph. More... | |||||||
void | addLayer (Layer layer) | ||||||
Adds this relation to the passed layer.If this relation 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 relation 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 () | ||||||
{@inheritDoc IdentifiableElement::getIdentifier()} | |||||||
void | setIdentifier (Identifier identifier) | ||||||
{@inheritDoc IdentifiableElement::setIdentifier(Identifier)} | |||||||
String | getId () | ||||||
{@inheritDoc IdentifiableElement::getId()} | |||||||
void | setId (String id) | ||||||
{@inheritDoc 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 () | ||||||
{@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 | 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 | 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()} | |||||||
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.RelationImpl< S extends Node, T extends Node > | |
void | basicSetGraph (Graph graph) |
This is an internally used method. More... | |
Protected Attributes inherited from org.corpus_tools.salt.core.impl.SRelationImpl< S extends SNode, T extends SNode > | |
SFeature | name = null |
The feature object containing the name of the node. | |
SFeature | type = null |
The feature object containing the type of the node. | |
Protected Attributes inherited from org.corpus_tools.salt.graph.impl.RelationImpl< S extends Node, T extends Node > | |
S | source = null |
source node of this relation. | |
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... | |
org.corpus_tools.salt.common.impl.SCorpusDocumentRelationImpl.SCorpusDocumentRelationImpl | ( | Relation | delegate | ) |
Initializes an object of type SCorpusDocumentRelationImpl.
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. |