ENUM
HaapiModel.ActionFactory
Contents
- Methods
form(properties:model:kind:title:)
selector(properties:model:kind:title:)
clientOperation(properties:model:kind:title:)
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:
- 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.
-
Returns: A built instance of
FormAction
.
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:
- 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.
-
Returns: A built instance of
SelectorAction
.
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:
- 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.
-
Returns: A built instance of
ClientOperationAction
.
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. |