ENUM

HaapiModel.ActionFactory

Contents

enum ActionFactory

Provides functionality to build instances of ActionModel.

Methods

form(properties:model:kind:title:)

public static func form(properties: FormAction.Properties?,
                        model: FormActionModel,
                        kind: ActionKind,
                        title: Message?) -> FormAction

Creates an instance of FormAction model.

Parameters

Name Description
properties The action argument properties.
model The model representing the action information.
kind The kind of action represented.
title The title for the modelled action.

selector(properties:model:kind:title:)

public static func selector(properties: SelectorAction.Properties?,
                            model: SelectorActionModel,
                            kind: ActionKind,
                            title: Message?) -> SelectorAction

Creates an instance of SelectorAction model.

Parameters

Name Description
properties The action argument properties.
model The model representing the action information.
kind The kind of action represented.
title The title for the modelled action.

clientOperation(properties:model:kind:title:)

public static func clientOperation(properties: ClientOperationAction.Properties?,
                                   model: ClientOperationActionModel,
                                   kind: ActionKind,
                                   title: Message?) -> ClientOperationAction

Creates an instance of ClientOperationAction model.

Parameters

Name Description
properties The action argument properties.
model The model representing the action information.
kind The kind of action represented.
title The title for the modelled action.