Class ValidationStorageResultItem

Validation message contained in the storage IStorage.

Hierarchy

Implements

Constructors

Static Keys Properties

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 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<unknown>
  • Дополнительная пользовательская информация.

    Returns IStorage<unknown>

  • set info(value: IStorage<unknown>): void
  • Additional info.

    Parameters

    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, декоратором для которого является текущий объект.

    Returns IStorage<unknown>

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

    Returns

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

    Returns boolean

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

    Returns

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

    Returns boolean

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

    Returns void

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

    Returns void

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

    Returns void

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

    Returns

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

    Returns null | IStorage<unknown>

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

    Returns

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

    Returns ValidationResult

Generated using TypeDoc