CatapultServer
v0.5.0.1 (Elephant)
|
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 |
A stateless notification validator to entity validator adapter.
|
private |
|
private |
catapult::validators::NotificationValidatorAdapter::NotificationValidatorAdapter | ( | NotificationValidatorPointer && | pValidator, |
NotificationPublisherPointer && | pPublisher | ||
) |
Creates a new adapter around pValidator and pPublisher.
|
overridevirtual |
Gets the validator name.
Implements catapult::validators::EntityValidatorT< TArgs >.
|
override |
|
private |
|
private |