Preparing search index...

    Интерфейс, описывающий комплексный мета-атрибут

    interface IMetaComplexAttribute {
        customProperties: ModelCollection<
            Universe.Platform.CustomProperty.CustomProperty,
        >;
        defaultValue: StringField<null>;
        description: StringField;
        dirty: boolean;
        displayName: StringField;
        generationStrategy?: any;
        hidden?: BooleanField<void>;
        isIndexable: boolean;
        isReadable: boolean;
        maxCount: IntegerField<null>;
        minCount: IntegerField;
        modelId: number;
        name: StringField;
        nestedEntity: null | IMetaModel;
        nestedEntityKeyAttribute: StringField<null>;
        nestedEntityName: StringField;
        nullable?: BooleanField<void>;
        observabilitySet: Set<ReactiveProp>;
        onChangeDirty: ModelDirtyChangeHandler;
        onValidation: (_validationResult: IValidationResult) => void;
        order: IntegerField;
        phantom: boolean;
        rights?: null | Right;
        typeCategory?: null | AttributeTypeCategory;
        validationResult: IValidationResult;
        get processedDefaultValue(): any;
        get typeValue(): | undefined
        | ARRAY_DATA_TYPE
        | CODE_DATA_TYPE
        | SIMPLE_DATA_TYPE;
        afterInit(): void;
        beforeInit(): void;
        calculateDeepDirty(): boolean;
        calculateDirty(): boolean;
        calculateFieldsDirty(): boolean;
        calculateModelDirty(): boolean;
        checkFieldDirty(field: AbstractField<any>): boolean;
        clearValidationResult(): void;
        clone<T extends AbstractModel<any>>(includeSystemProps?: boolean): T;
        commit(): void;
        commitFields(): void;
        commitHasMany(): void;
        commitHasOne(): void;
        createFields(data: any): void;
        createHasMany(data: any, initConfig: Partial<ModelOptions>): void;
        createHasOne(data: any, initConfig: Partial<ModelOptions>): void;
        getCollection(name: string): any;
        getCustomProperty(
            key: string,
        ): null | Universe.Platform.CustomProperty.CustomProperty;
        getCustomPropertyJsonValue(key: string): any;
        getDeepDirty(): boolean;
        getDirty(): boolean;
        getErrorMessage(validatorName: string): string;
        getField(name: string): undefined | AbstractField<any, BaseOptions>;
        getFieldJsonDescriptor(
            propertyName: string,
        ):
            | undefined
            | ClassPropertyDescriptor<any, AbstractField<any, BaseOptions>>;
        getFieldMainDescriptor(
            propertyName: string,
        ): ClassPropertyDescriptor<any, AbstractField<any, BaseOptions>>;
        getFieldMainDescriptors(): ClassPropertyDescriptor<
            any,
            AbstractField<any, BaseOptions>,
        >[];
        getFields(): any[];
        getFieldsMap(): { [key: string]: any };
        getHasManyCollection(): any[];
        getHasManyJsonDescriptor(
            propertyName: string,
        ): undefined | ClassPropertyDescriptor<any, ModelCollection<any>>;
        getHasManyMainDescriptor(
            propertyName: string,
        ): ClassPropertyDescriptor<any, ModelCollection<any>>;
        getHasManyMainDescriptors(): ClassPropertyDescriptor<
            any,
            ModelCollection<any>,
        >[];
        getHasManyMap(): { [key: string]: any };
        getHasOneCollection(): any[];
        getHasOneJsonDescriptor(
            propertyName: string,
        ): undefined | ClassPropertyDescriptor<any, AbstractModel<any>>;
        getHasOneMainDescriptor(
            propertyName: string,
        ): ClassPropertyDescriptor<any, AbstractModel<any>>;
        getHasOneMainDescriptors(): ClassPropertyDescriptor<
            any,
            AbstractModel<any>,
        >[];
        getHasOneMap(): { [key: string]: any };
        getHasOneOriginalCollection(): { [key: string]: any };
        getLogicErrors(): string[];
        getModelDirty(): boolean;
        getPhantom(): boolean;
        getPrimaryKeyValue(): string;
        getPropertiesAsMapByDescriptors<
            T extends
                | AbstractModel<any>
                | AbstractField<any, BaseOptions>
                | ModelCollection<any>,
        >(
            descriptors: ClassPropertyDescriptor<any, T>[],
        ): { [key in string]?: ModelProperty<any, T, any> };
        getPropertiesByDescriptors<
            T extends
                | AbstractModel<any>
                | AbstractField<any, BaseOptions>
                | ModelCollection<any>,
        >(
            descriptors: ClassPropertyDescriptor<any, T>[],
        ): ModelProperty<any, T, any>[];
        getPropertyByDescriptor<
            T extends
                | AbstractModel<any>
                | AbstractField<any, BaseOptions>
                | ModelCollection<any>,
        >(
            descriptor: ClassPropertyDescriptor<any, T>,
        ): undefined | ModelProperty<any, T, any>;
        getReferencesChanged(): boolean;
        getValidationResult(level?: number): Map<string, string[]>;
        isEqual(model: AbstractModel<any>, config?: EqualConfig): boolean;
        revert(): void;
        serialize(
            config?: SerializationConfig,
        ): Partial<Pick<GetTypes<any>, string>>;
        setCustomPropertyValue(key: string, value: string): void;
        setDeepDirty(flag: boolean): void;
        setDirty(flag: boolean): void;
        setPhantomCascade(phantom: boolean): void;
        setReactive(props: ReactiveProp[]): void;
        setReactiveCascade(props: ReactiveProp[]): void;
        setReferencesChanged(flag: boolean): void;
        updateDeepDirty(): void;
        updateDirty(): void;
        updateModelDirty(): void;
        validate(disablePropagation?: boolean): IValidationResult;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    Дополнительные параметры атрибута

    defaultValue: StringField<null>

    Значение атрибута по умолчанию

    description: StringField

    Описание атрибута

    dirty: boolean
    displayName: StringField
    generationStrategy?: any

    Стратегия автогенерации значения атрибута

    hidden?: BooleanField<void>

    Является ли атрибут скрытым

    isIndexable: boolean

    Является ли атрибут индексируемым

    isReadable: boolean

    Имеет ли пользователь права на чтение атрибута

    maxCount: IntegerField<null>

    Максимальное количество атрибутов

    minCount: IntegerField

    Минимальное количество атрибутов

    modelId: number
    nestedEntity: null | IMetaModel

    Вложенный объект

    nestedEntityKeyAttribute: StringField<null>

    Ключевой атрибут вложенного объекта

    nestedEntityName: StringField

    Внутреннее имя вложенного объекта

    nullable?: BooleanField<void>

    Может ли атрибут быть незаполненным

    observabilitySet: Set<ReactiveProp>
    onValidation: (_validationResult: IValidationResult) => void

    Порядок отображения относительно других атрибутов

    phantom: boolean
    rights?: null | Right

    Права пользователя, связанные с данным атрибутом

    typeCategory?: null | AttributeTypeCategory

    Категория типов атрибута

    validationResult: IValidationResult

    Accessors

    • get processedDefaultValue(): any

      Значение атрибута по умолчанию, используемое при создании дата-атрибута

      Returns any

    Methods

    • This method is called at the final stage of model initialization

      Returns void

    • The method calls before the model initialization begins

      Returns void

    • Cloning model data

      Type Parameters

      Parameters

      • OptionalincludeSystemProps: boolean

        phantom, dirty, original values

      Returns T

      T

    • Метод, возвращающий десериализованное значение дополнительного параметра атрибута

      Parameters

      • key: string

        Имя доп. параметра

      Returns any

    • This method is called at the validation. If there is logical errors in model, here will be list of them

      Returns string[]

    • Parameters

      • Optionallevel: number

      Returns Map<string, string[]>

    • Метод, устанавливающий значение дополнительного параметра атрибута

      Parameters

      • key: string

        Имя доп. параметра

      • value: string

      Returns void

    • Sets the phantom attribute cascadingly for the model

      Parameters

      • phantom: boolean

      Returns void