Table of Contents

Class ConfigurationValidationBase

Namespace
RetailForce.Fiscalisation.Configuration
Assembly
RetailForce.Fiscalisation.Model.dll

Base class for all configuration objects with validation.

public abstract class ConfigurationValidationBase : ValidationPropertyBase<ValidationError>
Inheritance
ValidationBase<ValidationError>
ValidationPropertyBase<ValidationError>
ConfigurationValidationBase
Derived
Inherited Members
ValidationPropertyBase<ValidationError>.Validate()

Properties

VALIDATION_ERROR_SOURCE

The correct validation error source for "ConfigurationValidation"

protected override string VALIDATION_ERROR_SOURCE { get; }

Property Value

string

Methods

AddPropertyError(ErrorLevel, string, string, string)

Adds a property attribute error with to correct implementation of ValidationErrorType.

protected override ValidationError AddPropertyError(ErrorLevel level, string declaringTypeName, string propertyName, string errorString)

Parameters

level ErrorLevel

The level of the property error.

declaringTypeName string

The name of the declaring type of the property with the validation error.

propertyName string

The name of the property with the validation error.

errorString string

The error description of the property error.

Returns

ValidationError

The created RetailForce.Common.Validation.ValidationError.

ValidateCountrySpecificProperty<CountryRequiredAttributeType>()

public List<ValidationError> ValidateCountrySpecificProperty<CountryRequiredAttributeType>() where CountryRequiredAttributeType : RequiredAttribute

Returns

List<ValidationError>

Type Parameters

CountryRequiredAttributeType

ValidateElement()

Validates the element with element specific validation and returns a list of validation errors.

protected override List<ValidationError> ValidateElement()

Returns

List<ValidationError>

A list of RetailForce.Common.Validation.ValidationError objects.