Class EnumField<EntityT, DeSerializersT, EnumT, NullableT, SelectableT>

Represents a property with an enum value.

Type Parameters

  • EntityT extends EntityBase

    Type of the entity the field belongs to.

  • DeSerializersT extends DeSerializers
  • EnumT extends string = string

    Enum type that contains all valid enum entries for this field.

  • NullableT extends boolean = false

    Boolean type that represents whether the field is nullable.

  • SelectableT extends boolean = false

    Boolean type that represents whether the field is selectable.

Hierarchy (view full)

Constructors

Properties

_entityConstructor: Constructable<EntityT>
_fieldName: string
_fieldOptions: Required<FieldOptions<NullableT, SelectableT>>
enumType?: Record<string, EnumT>

Methods

  • Creates an instance of Filter for this field and the given value using the operator 'eq', i.e. ==.

    Parameters

    • value: `${EnumT}`

      Value to be used in the filter.

    Returns Filter<EntityT, DeSerializersT, string>

    The resulting filter.

  • Gets the path to the complex type property represented by this.

    Returns string

    The path to the complex type property.

  • Creates an instance of Filter for this field and the given value using the operator 'ne', i.e. !=.

    Parameters

    • value: `${EnumT}`

      Value to be used in the filter.

    Returns Filter<EntityT, DeSerializersT, string>

    The resulting filter.

    Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.