public interface IlrConcept extends IlrBusinessArtifact, IlrMutableVerbalizable
A concept defines a single entity of a vocabulary. Entities such as
customer or shopping cart are concepts.
A concept may specialize another concept, as in an inheritance relationship.
In this relationship, a concept concept1 is said to be a parent
concept for concept2. For example, the concept pet is the parent concept of
cat and dog. A concept may have zero or more parents.
Concepts are bound together by fact types.
See the interface IlrFactType for details.
A specific instance of a concept may be represented by an object, called concept instance.
See the interface IlrConceptInstance for details.
Concepts appear in the business rule vocabulary as terms (see IlrTerm).
The link between a concept and a term is the label, which serves as a resolution key (a concept and its
corresponding term share the same label).
When the vocabulary is based on a business object model (IlrObjectModel), then an IlrConcept
is mapped to an IlrClass. This mapping is done with the fully-qualified name of the BOM class,
which is used as the identifier of the concept.
This interface defines all the methods necessary to handle concepts in a vocabulary. A concept is uniquely identified by its identifier.
A concept may be flagged
as a value type (see isValueType()), which indicates that this concept is considered
as a type for values in business rules. For example, the concepts string, number or
date are value types.
A concept may also be flagged as a proxy (see isProxy()), which means that this concept is
a reference to a concept which is missing in the instance of vocabulary. The missing concept could be a concept
defined in another vocabulary.
| Modifier and Type | Method and Description |
|---|---|
void |
addParentConcept(IlrConcept concept)
Adds a given concept to the list of parent concepts.
|
IlrFactType |
getFactType(java.lang.String factTypeName)
Gets a fact type by its name, from the list of held fact types.
|
java.util.List |
getHeldFactTypes()
Gets the fact types in which this concept is represented as holder role.
|
java.util.List |
getHolderRoles()
Returns the list of holder roles.
|
java.util.List |
getParentsConceptRef()
Returns the list of identifiers of the parent concepts.
|
boolean |
isProxy()
Tests if this concept is a proxy.
|
boolean |
isValueType()
Tests if this concept is a value type.
|
void |
removeParentConcept(IlrConcept concept)
Removes a given concept from the list of parent concepts.
|
void |
setValueType(boolean value)
Sets the value type flag.
|
addCategory, getCategories, getDescription, removeCategory, setDescriptiongetIdentifier, getName, getVocabulary, setName, setVocabularyaccept, clearInstanceProperties, clearProperties, clearVolatileProperties, delete, getProperties, getProperty, hasProperty, isDeleted, removeProperty, setProperties, setPropertyaddListener, getListeners, notify, removeListenersetLabelgetLabel, getTermvoid addParentConcept(IlrConcept concept)
concept - The concept to be added to the list of parents.void removeParentConcept(IlrConcept concept)
concept - The concept to be removed from the list of parents.java.util.List getParentsConceptRef()
java.util.List getHolderRoles()
java.util.List getHeldFactTypes()
IlrFactType getFactType(java.lang.String factTypeName)
factTypeName - The name of the fact type.IlrFactType, or null.boolean isValueType()
true if this concept is a value type.void setValueType(boolean value)
value - The value for the value type flag.boolean isProxy()
true if this concept is a proxy.© Copyright IBM Corp. 1987, 2017