Class validates parameters for workflows commands.

export

### Hierarchy

- WorkflowValidator

## Index

### Methods

- validateNotEmptyString
- validateOwner
- validateParameter
- validateSession
- validateString

## Methods

### Static validateNotEmptyString

- validateNotEmptyString(text: string, errorMsg: string): void

- - Defined in @zowe/zos-workflows-for-zowe-sdk/src/WorkflowValidator.ts:52

  Validate supplied parameters

  static
  memberof

    WorkflowValidator

  #### Parameters

  - ##### text: string

    string to check if empty

  - ##### errorMsg: string

    message to show in case validation fails

  #### Returns void

### Static validateOwner

- validateOwner(userID: string, errorMsg: string): void

- - Defined in @zowe/zos-workflows-for-zowe-sdk/src/WorkflowValidator.ts:78

  Validate supplied parameter

  static
  memberof

    WorkflowValidator

  #### Parameters

  - ##### userID: string

    string to check if it is valid user ID regarding IBM

  - ##### errorMsg: string

    message to show in case validation fails

  #### Returns void

### Static validateParameter

- validateParameter(parameterValue: string, errorMsg: string): void

- - Defined in @zowe/zos-workflows-for-zowe-sdk/src/WorkflowValidator.ts:64

  Validate supplied string for parameters if there is not value "?" or "&"

  static
  memberof

    WorkflowValidator

  #### Parameters

  - ##### parameterValue: string

    check if the provided parameters does not contain value "?" or "&"

  - ##### errorMsg: string

    message to show in case validation fails

  #### Returns void

### Static validateSession

- validateSession(session: AbstractSession): void

- - Defined in @zowe/zos-workflows-for-zowe-sdk/src/WorkflowValidator.ts:28

  Validate session

  static
  memberof

    WorkflowValidator

  #### Parameters

  - ##### session: AbstractSession

    z/OSMF connection info

  #### Returns void

### Static validateString

- validateString(text: string, errorMsg: string): void

- - Defined in @zowe/zos-workflows-for-zowe-sdk/src/WorkflowValidator.ts:41

  Validate supplied parameters

  static
  memberof

    WorkflowValidator

  #### Parameters

  - ##### text: string

    string to check if not null or undefined

  - ##### errorMsg: string

    message to show in case validation fails

  #### Returns void

Generated using TypeDoc