Validation message contained in the storage IStorage.

Hierarchy (View Summary, Expand)

Implements

Constructors

Properties - Other

cachedMemberChanged: EventHandler<
    { fieldName: string; newValue: unknown; oldValue: unknown },
>
fieldChanged: EventHandler<
    { fieldName: string; newValue: unknown; oldValue: unknown },
>

Properties - Static Keys

detailsKey: "Details" = 'Details'
fieldNameKey: "FieldName" = 'FieldName'
infoKey: "Info" = 'Info'
keyKey: "Key" = 'Key'
messageKey: "Message" = 'Message'
objectNameKey: "ObjectName" = 'ObjectName'
objectTypeKey: "ObjectType" = 'ObjectType'
typeKey: "Type" = 'Type'

Accessors

  • get cachedMembers(): ReadonlyMap<string, unknown>

    Returns ReadonlyMap<string, unknown>

  • get details(): string

    Additional information about the message, such as the full text of the exception, or '' if there is no additional information.

    Returns string

  • set details(value: string): void

    Additional information about the message, such as the full text of the exception, or '' if there is no additional information.

    Parameters

    • value: string

    Returns void

  • get fieldName(): string

    The name of the field of the object to which the validation message refers, or '' if the field is unknown.

    Returns string

  • set fieldName(value: string): void

    The name of the field of the object to which the validation message refers, or '' if the field is unknown.

    Parameters

    • value: string

    Returns void

  • get info(): IStorage

    Дополнительная пользовательская информация.

    Returns IStorage

  • set info(value: IStorage): void

    Additional info.

    Parameters

    Returns void

  • get isObservable(): boolean

    Определяет, является ли хранилище наблюдаемым, то есть поддерживает механизм автоматического оповещения о своих изменениях.

    Если значение этого свойства равно true, то объект класса может быть подписан на изменения, и соответствующие обработчики будут вызываться при каждом изменении состояния объекта.

    В противном случае, если значение false, объект считается ненаблюдаемым, и изменения в его состоянии не будут автоматически передаваться другим частям программы.

    Returns boolean

  • set isObservable(value: boolean): void

    Parameters

    • value: boolean

    Returns void

  • get message(): string

    The text of the message that occurred during validation.

    Returns string

  • set message(value: string): void

    The text of the message that occurred during validation.

    Parameters

    • value: string

    Returns void

  • get objectName(): string

    The name of the object to which the validation message refers, or '' if the name is unknown.

    Returns string

  • set objectName(value: string): void

    The name of the object to which the validation message refers, or '' if the name is unknown.

    Parameters

    • value: string

    Returns void

  • get objectType(): string

    The type of the object to which the validation message refers, or '' if the type is unknown.

    Returns string

  • set objectType(value: string): void

    The type of the object to which the validation message refers, or '' if the type is unknown.

    Parameters

    • value: string

    Returns void

Methods

  • Выполняет очистку хранилища от избыточных данных.

    Returns void

  • Выполняет резолв кеша декораторов для данных объекта-хранилища.

    Returns void

  • Возвращает хранилище IStorage, декоратором для которого является текущий объект.

    Returns IStorage

    Хранилище IStorage, декоратором для которого является текущий объект.

  • Returns an indication that the object does not contain meaningful data for the cleanup method.

    Returns boolean

    true if the object does not contain data that is meaningful to the cleanup method; false otherwise.

  • Выполняет проверку объекта на валидность и возвращает признак того, что объект является валидным.

    Returns boolean

    true, если объект прошёл проверку на валидность; false в противном случае.

  • Метод, уведомляющий объект о наличии изменений в его хранилище.

    Returns void

  • Удаляет системную информацию, которая может располагаться в любом месте в хранилище текущего объекта и может быть найдена по ключам с префиксом StorageHelper.systemKeyPrefix.

    Returns void

  • Удаляет пользовательскую информацию, которая может располагаться в любом месте в хранилище текущего объекта и может быть найдена по ключам с префиксом StorageHelper.userKeyPrefix.

    Returns void

  • Возвращает дополнительную пользовательскую информацию по текущему объекту или null, если информация ещё не была задана.

    Returns null | IStorage

    Дополнительная пользовательская информацию по текущему объекту или null, если информация ещё не была задана.

  • Выполняет валидацию текущего объекта и всех его дочерних объектов.

    Returns ValidationResult

    Объект, выполняющий построение результата валидации.

MMNEPVFCICPMFPCPTTAAATR