public interface IlrRole extends IlrBaseElement, IlrMutableVerbalizable
A role is a link between a fact type and a concept. A fact type contains an ordered list of roles, one of which is the holder role. The holder role represents the concept that holds the fact type. A fact type must have one, and only one holder role.
Internally, only the identifier of the concept attached to a role is stored, not the concept itself.
To retrieve the actual concept from a role, you must use the method IlrVocabulary.getConcept(IlrRole).
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConceptRef()
Gets the identifier of the referenced concept.
|
IlrFactType |
getFactType()
Gets the fact type that contains this role.
|
IlrConcept |
getHolderConcept()
Gets the holder concept referenced by this role, or returns
null
if this role is not a holder role. |
int |
getIndex()
Gets the index of this role.
|
boolean |
isHolderRole()
Returns
true if this role is a holder role. |
void |
setConcept(IlrConcept newConcept)
Sets the concept referenced by this role.
|
accept, clearInstanceProperties, clearProperties, clearVolatileProperties, delete, getProperties, getProperty, hasProperty, isDeleted, removeProperty, setProperties, setPropertyaddListener, getListeners, notify, removeListenersetLabelgetLabel, getTermboolean isHolderRole()
true if this role is a holder role.
A holder role represents the concept that holds a fact type.IlrConcept getHolderConcept()
null
if this role is not a holder role.null.void setConcept(IlrConcept newConcept)
newConcept - The new concept referenced by this role.IlrFactType getFactType()
int getIndex()
java.lang.String getConceptRef()
© Copyright IBM Corp. 1987, 2017