CatapultServer  v0.5.0.1 (Elephant)
catapult::validators::NotificationValidatorAdapter Class Reference
Inheritance diagram for catapult::validators::NotificationValidatorAdapter:
Collaboration diagram for catapult::validators::NotificationValidatorAdapter:

Public Member Functions

 NotificationValidatorAdapter (NotificationValidatorPointer &&pValidator, NotificationPublisherPointer &&pPublisher)
 Creates a new adapter around pValidator and pPublisher. More...
 
const std::string & name () const override
 Gets the validator name. More...
 
ValidationResult validate (const model::WeakEntityInfo &entityInfo) const override
 
- Public Member Functions inherited from catapult::validators::EntityValidatorT< TArgs >
virtual ~EntityValidatorT ()=default
 
virtual ValidationResult validate (const model::WeakEntityInfo &entityInfo, TArgs &&... args) const =0
 Validates a single entityInfo with contextual information args. More...
 

Private Types

using NotificationValidatorPointer = std::unique_ptr< const stateless::NotificationValidator >
 
using NotificationPublisherPointer = std::unique_ptr< const model::NotificationPublisher >
 

Private Attributes

NotificationValidatorPointer m_pValidator
 
NotificationPublisherPointer m_pPublisher
 

Detailed Description

A stateless notification validator to entity validator adapter.

Note
This adapter intentionally only supports stateless validators.

Member Typedef Documentation

◆ NotificationPublisherPointer

◆ NotificationValidatorPointer

Constructor & Destructor Documentation

◆ NotificationValidatorAdapter()

catapult::validators::NotificationValidatorAdapter::NotificationValidatorAdapter ( NotificationValidatorPointer &&  pValidator,
NotificationPublisherPointer &&  pPublisher 
)

Creates a new adapter around pValidator and pPublisher.

Member Function Documentation

◆ name()

const std::string & catapult::validators::NotificationValidatorAdapter::name ( ) const
overridevirtual

Gets the validator name.

Implements catapult::validators::EntityValidatorT< TArgs >.

◆ validate()

ValidationResult catapult::validators::NotificationValidatorAdapter::validate ( const model::WeakEntityInfo entityInfo) const
override
Here is the call graph for this function:

Member Data Documentation

◆ m_pPublisher

NotificationPublisherPointer catapult::validators::NotificationValidatorAdapter::m_pPublisher
private

◆ m_pValidator

NotificationValidatorPointer catapult::validators::NotificationValidatorAdapter::m_pValidator
private

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