C# Class Summer.Batch.Core.Job.DefaultJobParametersValidator

Default implementation of IJobParametersValidator.
Inheritance: IJobParametersValidator, IInitializationPostOperations
ファイルを表示 Open project: SummerBatch/SummerBatch

Public Methods

Method Description
AfterPropertiesSet ( ) : void

Check that there are no overlaps between required and optional keys. IInitializationPostOperations.AfterPropertiesSet

DefaultJobParametersValidator ( ) : System.Collections.Generic

Convenient default constructor for unconstrained validation.

DefaultJobParametersValidator ( string requiredKeys, string optionalKeys ) : System.Collections.Generic

Create a new validator with the required and optional job parameter keys provided.

Validate ( JobParameters parameters ) : void

Check the parameters meet the specification provided. If optional keys are explicitly specified then all keys must be in that list, or in the required list. Otherwise all keys that are specified as required must be present.

Method Details

AfterPropertiesSet() public method

Check that there are no overlaps between required and optional keys. IInitializationPostOperations.AfterPropertiesSet
public AfterPropertiesSet ( ) : void
return void

DefaultJobParametersValidator() public method

Convenient default constructor for unconstrained validation.
public DefaultJobParametersValidator ( ) : System.Collections.Generic
return System.Collections.Generic

DefaultJobParametersValidator() public method

Create a new validator with the required and optional job parameter keys provided.
public DefaultJobParametersValidator ( string requiredKeys, string optionalKeys ) : System.Collections.Generic
requiredKeys string
optionalKeys string
return System.Collections.Generic

Validate() public method

Check the parameters meet the specification provided. If optional keys are explicitly specified then all keys must be in that list, or in the required list. Otherwise all keys that are specified as required must be present.
 
public Validate ( JobParameters parameters ) : void
parameters JobParameters
return void