Interface IConcept
Понятие.
Inherited Members
Namespace: Ascon.Polynom.Api
Assembly: Ascon.Polynom.Api.dll
Syntax
public interface IConcept : IContract, IAbsoluteCodeableApiObject, ICodeableApiObject, IAbleToHaveChangeableName, IAbleToHaveName, IAbleToHaveDescription, ILinkScope, IAbleToHaveId, IPropertyOwnerScope, IDeleteableApiObject, IApiObject, IApiEntity, INotifyPropertyChanged
Properties
AllSubConcepts
Возвращает коллекцию всех понятий-потомков.
Declaration
IApiReadOnlyCollection<IConcept> AllSubConcepts { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IConcept> |
AllSuperConcepts
Возвращает коллекцию всех супер-понятий.
Declaration
IApiReadOnlyCollection<IConcept> AllSuperConcepts { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IConcept> |
Appointers
Возвращает коллекцию элементов, на которые назначено данное понятие.
Declaration
IApiReadOnlyCollection<IConceptAppointer> Appointers { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IConceptAppointer> |
ConceptPropertySources
Возвращает коллекцию всех источников свойств в понятии.
Declaration
IApiReadOnlyCollection<IConceptPropertySource> ConceptPropertySources { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IConceptPropertySource> |
PropertySources
Возвращает коллекцию собственных определений свойств данного понятия.
Declaration
IApiReadOnlyCollection<IPropertySource> PropertySources { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IPropertySource> |
Statistic
Возвращает статистику.
Declaration
IReadOnlyList<IStatisticItem> Statistic { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<IStatisticItem> |
SubConcepts
Возвращает непосредственных потомков данного понятия.
Declaration
IApiReadOnlyCollection<IConcept> SubConcepts { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IConcept> |
SuperConcept
Возвращает супер-понятие (понятие-предок).
Declaration
IConcept SuperConcept { get; }
Property Value
| Type | Description |
|---|---|
| IConcept |
Methods
CreateSubConcept(string, string, string, Guid?, ObjectStorageType)
Создает понятие-потомок.
Declaration
IConcept CreateSubConcept(string name, string code = null, string description = null, Guid? id = null, ObjectStorageType storageType = ObjectStorageType.Persistent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Имя понятия. |
| string | code | Код понятия. |
| string | description | Описание. |
| Guid? | id | Уникальный идентификатор. |
| ObjectStorageType | storageType | Тип хранения. |
Returns
| Type | Description |
|---|---|
| IConcept | Созданный понятие-потомок. |
DeleteWithSubConcepts()
Удаляет понятие со вложенными понятиями.
Declaration
void DeleteWithSubConcepts()
GetAppointedConcept(IGroup)
Возвращает опции понятия в группе.
Declaration
IAppointedConcept GetAppointedConcept(IGroup group)
Parameters
| Type | Name | Description |
|---|---|---|
| IGroup | group | Группа. |
Returns
| Type | Description |
|---|---|
| IAppointedConcept | Опции понятия в группе. |
GetConceptPropertySource(IPropertyDefinition)
Возвращает источник определения свойства в понятии.
Declaration
IConceptPropertySource GetConceptPropertySource(IPropertyDefinition propertyDefinition)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyDefinition | propertyDefinition | Определение свойства. |
Returns
| Type | Description |
|---|---|
| IConceptPropertySource | Источник свойства в понятии. |
GetConceptPropertySource(IPropertySource)
Возвращает источник определения свойства в понятии.
Declaration
IConceptPropertySource GetConceptPropertySource(IPropertySource propertySource)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertySource | propertySource | Источник свойства. |
Returns
| Type | Description |
|---|---|
| IConceptPropertySource | Источник свойства в понятии. |
GetConceptPropertySource(string)
Возвращает источник определения свойства в понятии по коду определения свойства.
Declaration
IConceptPropertySource GetConceptPropertySource(string propDefCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propDefCode | Код определения свойства. |
Returns
| Type | Description |
|---|---|
| IConceptPropertySource | Источник свойства в понятии. |
IsKindOf(IConcept)
Проверяет цепочку наследования понятия.
Declaration
bool IsKindOf(IConcept otherConcept)
Parameters
| Type | Name | Description |
|---|---|---|
| IConcept | otherConcept | Другое понятие для сравнения. |
Returns
| Type | Description |
|---|---|
| bool |
|