Class Accessor<TObj, TValue>

Accessor class to get and set values in a complex object

Type Parameters

  • TObj

  • TValue

Hierarchy

  • Accessor

Properties

Constructors

Methods

Properties

matcherList: IMatcher[] = []

Constructors

Methods

  • Gets the value of the object

    Returns

    it always returns an array, even if there is only one value

    Parameters

    • object: TObj

    Returns TValue[]

  • Sets the value of the object

    Parameters

    • object: TObj
    • value: TValue

    Returns void

  • Parameters

    • __namedParameters: {
          obj: TObj;
          matchers: IMatcher[];
          retrieveParentObjects?: boolean;
      }
      • obj: TObj
      • matchers: IMatcher[]
      • Optional retrieveParentObjects?: boolean

    Returns any[]