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.Identifier Interface Reference

This class represents an identifier, which is a special kind of a label. More...

Inherits org.corpus_tools.salt.graph.Label.

Inherited by org.corpus_tools.salt.graph.impl.IdentifierImpl.

Public Member Functions

String getId ()
 Returns the value of this Label. More...
 
IdentifiableElement getIdentifiableElement ()
 Returns the IdentifiableElement object containing this identifier. More...
 
void setValue (String value)
 This method has no effect, since the id value is not changeable.
 
- Public Member Functions inherited from org.corpus_tools.salt.graph.Label
String getNamespace ()
 Returns the optional namespace of the label. More...
 
void setNamespace (String namespace)
 Sets the optional namespace of the label. More...
 
String getName ()
 Returns the name of the label. More...
 
void setName (String name)
 Sets the name of the label. More...
 
String getQName ()
 Returns the qName of this label, which is the combination of namespace and name must be unique in the containing object. More...
 
void setQName (String qName)
 Sets the qName of this label, which is the combination of namespace and name must be unique in the containing object. More...
 
Object getValue ()
 Returns the value of this label. More...
 
void setValue (Object value)
 Sets the value of this label. More...
 
public< C extends LabelableElement > C getContainer ()
 Returns the container element, which contains this label. More...
 
public< C extends LabelableElement > void setContainer (C container)
 Sets the container element, which contains this label. 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...
 
- Public Member Functions inherited from org.corpus_tools.salt.util.Copyable< T >
copy (T other)
 Takes a new 'empty' object and sets all its fields by copying by value. More...
 

Additional Inherited Members

- Static Public Attributes inherited from org.corpus_tools.salt.graph.Label
static final String NS_SEPERATOR = "::"
 Separator between namespace and name: qname= NAMESPACE {@value NS_SEPERATOR} NAME.
 

Detailed Description

This class represents an identifier, which is a special kind of a label.

The identifier is used for Node, Relation, Graph and Layer objects. The namespace of an Identifier objectis fixed to SaltUtil#SALT_NAMESPACE and its name is fixed to SaltUtil#LABEL_ID.

Author
florian

Member Function Documentation

◆ getId()

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

Returns the value of this Label.

Returns
the id value

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

◆ getIdentifiableElement()

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

Returns the IdentifiableElement object containing this identifier.

Returns
container

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