public interface IlrFactType extends IlrBusinessArtifact
A fact type represents the semantic link between two or more concepts. Each concept plays a role in
this fact type (see IlrRole).
A fact type always contains a specific role called holder role which represents
the concept that holds this fact type.
The fact type contains sentences. A sentence is a verbalized representation of a fact type. It corresponds to the phrase templates that are used for verbalization in the BOM Editor.
When the vocabulary is based on a business object model (IlrObjectModel), a fact type is
mapped to an IlrMember. The name of the fact type is the signature of the BOM member.
The holder role designates the concept corresponding to the declaring class of the BOM member.
A fact type is uniquely identified in a vocabulary by its identifier, which is composed of the identifier of the holder concept, followed by a slash '/', followed by the name of the fact type.
| Modifier and Type | Method and Description |
|---|---|
IlrRole |
addHolderRole(IlrConcept concept)
Adds a new role to this fact type, links it to the specified
concept, and sets this new role as the holder role of the fact type.
|
IlrRole |
addRole()
Adds a new role to this fact type.
|
IlrRole |
addRole(IlrConcept concept)
Adds a new role to this fact type, and links it to the specified
concept.
|
void |
addRole(IlrRole role)
Adds the specified role to this fact type.
|
void |
addRoleAt(IlrRole role,
int index)
Adds a role to this fact type at the specified index.
|
IlrSentence |
addSentence()
Creates and adds a new sentence to this fact type.
|
void |
addSentence(IlrSentence sentence)
Adds the specified sentence to this fact type.
|
IlrRole |
getHolderRole()
Returns the holder role of this fact type.
|
IlrRole |
getRole(int index)
Gets the role at a given index.
|
java.util.List |
getRoles()
Gets the list of roles involved in this fact type.
|
IlrSentence |
getSentence(java.lang.String name)
Gets a sentence by its identifier.
|
java.util.List |
getSentences()
Gets the list of all sentences handled by this fact type.
|
void |
removeRole(IlrRole role)
Removes the specified role from this fact type.
|
void |
removeSentence(IlrSentence sentence)
Removes the specified sentence from this fact type.
|
void |
setHolderRole(IlrRole role)
Sets the holder role of this fact type.
|
addCategory, getCategories, getDescription, removeCategory, setDescriptiongetIdentifier, getName, getVocabulary, setName, setVocabularyaccept, clearInstanceProperties, clearProperties, clearVolatileProperties, delete, getProperties, getProperty, hasProperty, isDeleted, removeProperty, setProperties, setPropertyaddListener, getListeners, notify, removeListenerjava.util.List getSentences()
java.util.List getRoles()
IlrRole getRole(int index)
index - The index of the role.null if no role was found at this index.IlrSentence getSentence(java.lang.String name)
name - The name of the sentence.null if no sentence was found.IlrSentence addSentence()
IlrRole addRole()
setConcept.
setHolderRole to set it as a holder role.IlrRole.IlrRole addRole(IlrConcept concept)
setHolderRole to set it as a holder role.concept - The concept to be linked to the role.IlrRole.IlrRole addHolderRole(IlrConcept concept)
concept - The concept to be linked to the role.IlrRole.IlrRole getHolderRole()
void removeSentence(IlrSentence sentence)
sentence - The sentence to remove.void removeRole(IlrRole role)
role - The role to remove.void addSentence(IlrSentence sentence)
sentence - The sentence to add.void addRole(IlrRole role)
role - The role to add.void addRoleAt(IlrRole role, int index)
role - The role to add.index - The index where the role needs to be inserted.void setHolderRole(IlrRole role)
null, then the holder role attribute
is unset. In this state, the fact type has no holder role and will be lost when serializing
the vocabulary. You must then set a new holder role to this fact type.role - The holder role.© Copyright IBM Corp. 1987, 2017