public interface IlrSentence extends IlrVocabularyElement
A sentence is the verbalization of a fact type, using a phrase in a natural language.
A text template provides the verbalization of a fact type into a sentence.
In a sentence, each role of the associated fact type plays a syntactic role,
represented by the list of IlrSyntacticRoles of the sentence.
See IlrSyntacticRole for details.
There are different categories of sentences: navigation sentences, action sentences, and predicates.
Sentences appear as navigation and action phrases in the BOM Editor.
| Modifier and Type | Method and Description |
|---|---|
IlrSyntacticRole |
addSyntacticRole()
Adds a new syntactic role to the list of syntactic roles in this sentence.
|
void |
addSyntacticRole(IlrSyntacticRole syntacticRole)
Adds a new syntactic role to this sentence, at the end of the list
of syntactic roles.
|
void |
addSyntacticRoleAt(IlrSyntacticRole syntacticRole,
int index)
Adds a new syntactic role to this sentence, at a given index.
|
IlrSentenceCategory |
getCategory()
Gets the category of this sentence.
|
IlrFactType |
getFactType()
Gets the fact type to which this sentence is attached.
|
IlrSyntacticRole |
getSyntacticRole(int index)
Gets the syntactic role of this sentence at a given index.
|
java.util.List |
getSyntacticRoles()
Gets the list of the syntactic roles in this sentence.
|
java.lang.String |
getTextTemplate()
Gets the text template of this sentence.
|
void |
removeSyntacticRole(IlrSyntacticRole syntacticRole)
Removes the specified syntactic role from this sentence.
|
void |
setCategory(IlrSentenceCategory value)
Sets a category to this sentence.
|
void |
setSyntacticRoles(IlrSyntacticRole[] syntacticRoles)
Sets a new list of syntactic roles.
|
void |
setTextTemplate(java.lang.String textTemplate)
Sets a new text template for this sentence.
|
getIdentifier, getName, getVocabulary, setName, setVocabularyaccept, clearInstanceProperties, clearProperties, clearVolatileProperties, delete, getProperties, getProperty, hasProperty, isDeleted, removeProperty, setProperties, setPropertyaddListener, getListeners, notify, removeListenerjava.lang.String getTextTemplate()
void setTextTemplate(java.lang.String textTemplate)
textTemplate - The new text template.IlrSentenceCategory getCategory()
void setCategory(IlrSentenceCategory value)
value - The new category.java.util.List getSyntacticRoles()
IlrFactType getFactType()
IlrSyntacticRole getSyntacticRole(int index)
index - The index of the syntactic role.IlrSyntacticRole addSyntacticRole()
void removeSyntacticRole(IlrSyntacticRole syntacticRole)
syntacticRole - The syntactic role to remove.void addSyntacticRole(IlrSyntacticRole syntacticRole)
syntacticRole - The syntactic role to add.void addSyntacticRoleAt(IlrSyntacticRole syntacticRole, int index)
syntacticRole - The syntactic role to add.index - The insertion index.void setSyntacticRoles(IlrSyntacticRole[] syntacticRoles)
syntacticRoles - An array of syntactic roles.© Copyright IBM Corp. 1987, 2017