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 .
org.corpus_tools.salt.core.SNamedElement Interface Reference

Each implementing subclass provides a name. More...

Inherited by org.corpus_tools.salt.core.SGraph, org.corpus_tools.salt.core.SLayer, org.corpus_tools.salt.core.SNode, and org.corpus_tools.salt.core.SRelation< S extends SNode, T extends SNode >.

Public Member Functions

String getName ()
 Returns the name of this element. More...
 
void setName (String name)
 Sets the name of the element. More...
 

Detailed Description

Each implementing subclass provides a name.

The name is stored as label and can be accessed with the namespace NAMESPACE and the name NAME.

Author
florian

Member Function Documentation

◆ getName()

String org.corpus_tools.salt.core.SNamedElement.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.

Returns
name of the element.

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 >, and org.corpus_tools.salt.core.impl.SLayerImpl.

◆ setName()

void org.corpus_tools.salt.core.SNamedElement.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.

Parameters
namename of the element.

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 >, and org.corpus_tools.salt.core.impl.SLayerImpl.