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
-
objectValidationBase<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
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
levelErrorLevelThe level of the property error.
declaringTypeNamestringThe name of the declaring type of the property with the validation error.
propertyNamestringThe name of the property with the validation error.
errorStringstringThe error description of the property error.
Returns
- DocumentValidationError
An DocumentValidationError representing the ValidationError.