C# Class Rosetta.Executable.PathCheckConversionArgumentsValidator

A validator checking all paths if arguments are not null.
Inheritance: IConversionArgumentsValidator
Mostra file Open project: andry-tino/Rosetta

Private Properties

Property Type Description
ValidatePathToDirectoryWhenNotNull bool
ValidatePathToFileWhenNotNull bool

Public Methods

Method Description
PathCheckConversionArgumentsValidator ( ConversionArguments arguments ) : System
TryValidate ( ) : bool

Validated the arguments.

Validate ( ) : void

Validates the ConversionArguments and if validation is not successful throws an exception.

Private Methods

Method Description
ValidatePathToDirectoryWhenNotNull ( string path ) : bool
ValidatePathToFileWhenNotNull ( string path ) : bool

Method Details

PathCheckConversionArgumentsValidator() public method

public PathCheckConversionArgumentsValidator ( ConversionArguments arguments ) : System
arguments ConversionArguments
return System

TryValidate() public method

Validated the arguments.
public TryValidate ( ) : bool
return bool

Validate() public method

Validates the ConversionArguments and if validation is not successful throws an exception.
Raised when one of the properties fails validation.
public Validate ( ) : void
return void