C# Class EU.Europa.EC.Markt.Dss.Validation.Report.Result

Representation of the Result in the validation report.
Representation of the Result in the validation report.
Mostrar archivo Open project: nonorganic/dssnet Class Usage Examples

Protected Properties

Property Type Description
description string

Public Methods

Method Description
GetDescription ( ) : string
GetStatus ( ) : Result.ResultStatus
IsInvalid ( ) : bool

returns whether the check was invalid

IsUndetermined ( ) : bool

returns whether the check was undetermined

IsValid ( ) : bool

returns whether the check was valid

Result ( ) : EU.Europa.EC.Markt.Dss.Validation.Report

The default constructor for Result.

The default constructor for Result.

Result ( Result status, string description ) : EU.Europa.EC.Markt.Dss.Validation.Report

The default constructor for Result.

The default constructor for Result.

Result ( bool assertion ) : EU.Europa.EC.Markt.Dss.Validation.Report

One-liner to create a Result by asserting something, set to invalid if the assertion fails

SetDescription ( string description ) : void

Set description of the result

SetStatus ( Result status, string description ) : void
ToString ( ) : string

Private Methods

Method Description
Result ( bool assertion, Result statusIfFailed ) : EU.Europa.EC.Markt.Dss.Validation.Report

One-liner to create a Result by asserting something

Method Details

GetDescription() public method

public GetDescription ( ) : string
return string

GetStatus() public method

public GetStatus ( ) : Result.ResultStatus
return Result.ResultStatus

IsInvalid() public method

returns whether the check was invalid
public IsInvalid ( ) : bool
return bool

IsUndetermined() public method

returns whether the check was undetermined
public IsUndetermined ( ) : bool
return bool

IsValid() public method

returns whether the check was valid
public IsValid ( ) : bool
return bool

Result() public method

The default constructor for Result.
The default constructor for Result.
public Result ( ) : EU.Europa.EC.Markt.Dss.Validation.Report
return EU.Europa.EC.Markt.Dss.Validation.Report

Result() public method

The default constructor for Result.
The default constructor for Result.
public Result ( Result status, string description ) : EU.Europa.EC.Markt.Dss.Validation.Report
status Result
description string
return EU.Europa.EC.Markt.Dss.Validation.Report

Result() public method

One-liner to create a Result by asserting something, set to invalid if the assertion fails
public Result ( bool assertion ) : EU.Europa.EC.Markt.Dss.Validation.Report
assertion bool
return EU.Europa.EC.Markt.Dss.Validation.Report

SetDescription() public method

Set description of the result
public SetDescription ( string description ) : void
description string
return void

SetStatus() public method

public SetStatus ( Result status, string description ) : void
status Result
description string
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

description protected_oe property

protected string description
return string