CatapultServer  v0.5.0.1 (Elephant)
catapult::validators::EntityValidatorT< TArgs > Class Template Referenceabstract
Inheritance diagram for catapult::validators::EntityValidatorT< TArgs >:

Public Member Functions

virtual ~EntityValidatorT ()=default
 
virtual const std::string & name () const =0
 Gets the validator name. More...
 
virtual ValidationResult validate (const model::WeakEntityInfo &entityInfo, TArgs &&... args) const =0
 Validates a single entityInfo with contextual information args. More...
 

Detailed Description

template<typename... TArgs>
class catapult::validators::EntityValidatorT< TArgs >

A weakly typed entity validator.

Note
This is intended to be used only for stateless validation.

Constructor & Destructor Documentation

◆ ~EntityValidatorT()

template<typename... TArgs>
virtual catapult::validators::EntityValidatorT< TArgs >::~EntityValidatorT ( )
virtualdefault

Member Function Documentation

◆ name()

template<typename... TArgs>
virtual const std::string& catapult::validators::EntityValidatorT< TArgs >::name ( ) const
pure virtual

Gets the validator name.

Implemented in catapult::validators::NotificationValidatorAdapter.

◆ validate()

template<typename... TArgs>
virtual ValidationResult catapult::validators::EntityValidatorT< TArgs >::validate ( const model::WeakEntityInfo entityInfo,
TArgs &&...  args 
) const
pure virtual

Validates a single entityInfo with contextual information args.


The documentation for this class was generated from the following file: