IUFModel defines the minimal methods a model class should implement.

interface IUFModel {
    getPropertyValue<T>(name): T;
    isValidPropertyValue(propertyName, value): boolean;
    setPropertyValue<T>(name, value): void;
}

Implemented by

Methods

  • Gets a value of a property.

    Type Parameters

    • T

    Parameters

    • name: string

      Name of property

    Returns T

    Value of property

  • Checks if a value is valid for a property.

    If the property is unknown or does not have any validator attached to it, the method returns true.

    Parameters

    • propertyName: string

      Property name

    • value: any

      Value to test

    Returns boolean

    True if the value is valid for property, otherwise false.

  • Sets a property to a value.

    Type Parameters

    • T

    Parameters

    • name: string

      Property name

    • value: T

      Value to assign

    Returns void