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.graph.IdentifiableElement Interface Reference

Inherits org.corpus_tools.salt.graph.LabelableElement.

Inherited by org.corpus_tools.salt.graph.Graph< N extends Node, R extends Relation< N, N, L extends Layer< N, R >, org.corpus_tools.salt.graph.impl.IdentifiableElementImpl, org.corpus_tools.salt.graph.Layer< N extends Node, R extends Relation< N, N >, org.corpus_tools.salt.graph.Node, and org.corpus_tools.salt.graph.Relation< S extends Node, T extends Node >.

Public Member Functions

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< LabelgetLabels ()
 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< LabelgetLabelsByNamespace (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...
 

Member Function Documentation

◆ getId()

String org.corpus_tools.salt.graph.IdentifiableElement.getId ( )

Returns the id of this object, which is the value of the contained Identifier object.

Returns
the id String

Implemented in org.corpus_tools.salt.graph.impl.IdentifiableElementImpl.

◆ getIdentifier()

Identifier org.corpus_tools.salt.graph.IdentifiableElement.getIdentifier ( )

Returns the Identifier label for this object.

Returns
the Identifier object

Implemented in org.corpus_tools.salt.graph.impl.IdentifiableElementImpl.

◆ setId()

void org.corpus_tools.salt.graph.IdentifiableElement.setId ( String  id)

Creates a new Identifier object and sets its value to the passed id.

Parameters
valuethe id String

Implemented in org.corpus_tools.salt.common.impl.SDocumentImpl, and org.corpus_tools.salt.graph.impl.IdentifiableElementImpl.

◆ setIdentifier()

void org.corpus_tools.salt.graph.IdentifiableElement.setIdentifier ( Identifier  identifier)

Sets the Identifier label for this object.

If this object alredy had an identifier, the old one is removed and the new one is added.

Parameters
theIdentifier object

Implemented in org.corpus_tools.salt.common.impl.SDocumentImpl, and org.corpus_tools.salt.graph.impl.IdentifiableElementImpl.