public interface SentenceData
extends java.io.Serializable, de.ims.icarus.ui.text.TextItem
Modifier and Type | Field and Description |
---|---|
static int |
ROOT_INDEX |
Modifier and Type | Method and Description |
---|---|
SentenceData |
clone()
Creates a copy of this
SentenceData object |
java.lang.String |
getFeatures(int index) |
long |
getFlags(int index) |
java.lang.String |
getForm(int index)
Returns the
form tokens of the underlying sentence
this SentenceData object represents (i.e. |
int |
getIndex() |
java.lang.String |
getLemma(int index) |
java.lang.String |
getPos(int index) |
java.lang.Object |
getProperty(int index,
java.lang.String key) |
java.lang.Object |
getProperty(java.lang.String key) |
Grammar |
getSourceGrammar()
Returns the
Grammar that created this SentenceData
object or that encapsulates the grammatical rules and structural
terms that define the basis of this SentenceData object. |
boolean |
isEmpty()
Returns
true if this SentenceData object
represents the empty sentence. |
boolean |
isFlagSet(int index,
long flag)
Tests whether a given flag is set on the current
SentenceData
object. |
int |
length()
Returns the length of the underlying sentence structure, i.e.
|
static final int ROOT_INDEX
int getIndex()
SentenceData clone()
SentenceData
objectSentenceData
objectjava.lang.String getForm(int index)
form
tokens of the underlying sentence
this SentenceData
object represents (i.e. all
the terminal symbols)form
tokens of the underlying sentencejava.lang.String getPos(int index)
java.lang.String getLemma(int index)
java.lang.String getFeatures(int index)
java.lang.Object getProperty(int index, java.lang.String key)
java.lang.Object getProperty(java.lang.String key)
boolean isEmpty()
true
if this SentenceData
object
represents the empty sentence. This is equivalent with
#getForms()
returning an empty array of String
tokens.true
if and only if the underlying sentence is emptyint length()
SentenceData
instance.Grammar getSourceGrammar()
Grammar
that created this SentenceData
object or that encapsulates the grammatical rules and structural
terms that define the basis of this SentenceData
object.'grammatical'
source of this SentenceData
objectboolean isFlagSet(int index, long flag)
SentenceData
object. The exact meaning of flag
values is implementation group
specific.long getFlags(int index)