IUFModel defines the minimal methods a model class should implement.

interface IUFModel {
    getPropertyValue<T>(aName): T;
    isValidPropertyValue(aPropertyName, aValue): boolean;
    setPropertyValue<T>(aName, aValue): void;
}

Implemented by

Methods

  • Gets a value of a property.

    Type Parameters

    • T

    Parameters

    • aName: 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

    • aPropertyName: string

      Property name

    • aValue: 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

    • aName: string

      Property name

    • aValue: T

      Value to assign

    Returns void