Summer.Batch.Core.Job.DefaultJobParametersValidator Class Reference

Default implementation of IJobParametersValidator. More...

Inheritance diagram for Summer.Batch.Core.Job.DefaultJobParametersValidator:
Summer.Batch.Core.IJobParametersValidator Summer.Batch.Common.Factory.IInitializationPostOperations

Public Member Functions

 DefaultJobParametersValidator ()
 Convenient default constructor for unconstrained validation. More...
 
 DefaultJobParametersValidator (string[] requiredKeys, string[] optionalKeys)
 Create a new validator with the required and optional job parameter keys provided. More...
 
void Validate (JobParameters parameters)
 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. More...
 
void AfterPropertiesSet ()
 Check that there are no overlaps between required and optional keys. IInitializationPostOperations.AfterPropertiesSet More...
 

Properties

ICollection< string > RequiredKeys [set]
 Collection of required keys property. More...
 
ICollection< string > OptionalKeys [set]
 Collection of optional keys property. More...
 

Detailed Description

Default implementation of IJobParametersValidator.

Constructor & Destructor Documentation

Summer.Batch.Core.Job.DefaultJobParametersValidator.DefaultJobParametersValidator ( )

Convenient default constructor for unconstrained validation.

Summer.Batch.Core.Job.DefaultJobParametersValidator.DefaultJobParametersValidator ( string[]  requiredKeys,
string[]  optionalKeys 
)

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

Parameters
requiredKeys
optionalKeys

Member Function Documentation

void Summer.Batch.Core.Job.DefaultJobParametersValidator.AfterPropertiesSet ( )

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

Implements Summer.Batch.Common.Factory.IInitializationPostOperations.

void Summer.Batch.Core.Job.DefaultJobParametersValidator.Validate ( JobParameters  parameters)

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.

Parameters
parameters
Exceptions
JobParametersInvalidException 

Implements Summer.Batch.Core.IJobParametersValidator.

Property Documentation

ICollection<string> Summer.Batch.Core.Job.DefaultJobParametersValidator.OptionalKeys
set

Collection of optional keys property.

ICollection<string> Summer.Batch.Core.Job.DefaultJobParametersValidator.RequiredKeys
set

Collection of required keys property.


The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/Job/DefaultJobParametersValidator.cs