### File

`src/validation/pattern.model.ts`

### Extends

`Validation`

### Index

###### Properties
Public value
###### Methods
Public isRequired

### Constructor

`constructor(message: string, value: string)`
Defined in src/validation/pattern.model.ts:3
Parameters :
Name | Type | Optional | Description
message | `string` |  |
value | `string` |  |

### Methods

Public isRequired
`isRequired()`
Defined in src/validation/pattern.model.ts:13
Returns : `boolean`

### Properties

Public value
`value: `string``
Type : `string`
Defined in src/validation/pattern.model.ts:7

    import { Validation, ValidationType } from '.';

    export class Pattern extends Validation {

      public constructor(
        message: string,
        public value: string
      ) {
        super(ValidationType.PATTERN, message);
      }

      /** @override */
      public isRequired(): boolean {
        return ValidationType.PATTERN === this.type && 'true' === this.value.toString();
      }
    }

# results matching ""

# No results matching ""