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.util.DataSourceSequence< P extends Number > Class Template Reference

This class is a helper class to address a sequence inside a data source. More...

Classes

class  Builder
 

Public Member Functions

 DataSourceSequence (SSequentialDS dataSource, P start, P end)
 
getStart ()
 
void setStart (P start)
 
getEnd ()
 
void setEnd (P end)
 
SSequentialDS getDataSource ()
 
void setDataSource (SSequentialDS dataSource)
 
String toString ()
 @generated
 

Protected Attributes

start = null
 start value for this sequence
 
end = null
 end value for this sequence
 
SSequentialDS dataSource
 data source which is addressed by this sequence
 

Detailed Description

This class is a helper class to address a sequence inside a data source.

For instance to address the text "sample" in a STextualDS#getText() "This is a sample text.", a DataSourceSequence object needs to be initialized like this: getStart() =10, getEnd() = 16 and getDataSource() = the data source containing the entire text.

Author
florian

Member Function Documentation

◆ getDataSource()

SSequentialDS org.corpus_tools.salt.util.DataSourceSequence< P extends Number >.getDataSource ( )
Returns
data source which is addressed by this sequence

◆ getStart()

P org.corpus_tools.salt.util.DataSourceSequence< P extends Number >.getStart ( )
Returns
start value of this sequence

◆ setDataSource()

void org.corpus_tools.salt.util.DataSourceSequence< P extends Number >.setDataSource ( SSequentialDS  dataSource)
Parameters
dataSourcedata source which is addressed by this sequence

◆ setStart()

void org.corpus_tools.salt.util.DataSourceSequence< P extends Number >.setStart ( start)
Parameters
startstart value of this sequence