Table of Contents

Class DocumentValidationBase

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

Basic class for all document classes for validation.

[Serializable]
public abstract class DocumentValidationBase : ValidationPropertyBase<DocumentValidationError>
Inheritance
object
ValidationBase<DocumentValidationError>
ValidationPropertyBase<DocumentValidationError>
DocumentValidationBase
Derived
Inherited Members
ValidationPropertyBase<DocumentValidationError>.Validate()
ValidationBase<DocumentValidationError>.ValidateElement()

Properties

DocumentLevel

The level for the document.

protected abstract DocumentLevel DocumentLevel { get; }

Property Value

DocumentLevel

VALIDATION_ERROR_SOURCE

The validation error source for all classes derived from this class.

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 DocumentValidationError 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

DocumentValidationError

An DocumentValidationError representing the ValidationError.