Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Mantid::Kernel::NullValidator Class Referencefinal

NullValidator is a validator that doesn't. More...

#include <Kernel/NullValidator.h>

Inheritance diagram for Mantid::Kernel::NullValidator:
Mantid::Kernel::IValidator

Public Member Functions

IValidator_sptr clone () const override
 Make a copy of the present type of validator. More...
 
- Public Member Functions inherited from Mantid::Kernel::IValidator
virtual std::vector< std::string > allowedValues () const
 The set of allowed values that this validator may have, if a discrete set exists. More...
 
virtual std::string check (const boost::any &) const =0
 Checks the value based on the validator's rules. More...
 
virtual IValidator_sptr clone () const =0
 Make a copy of the present type of validator. More...
 
virtual std::string getValueForAlias (const std::string &alias) const
 Implement this method for validators which wish to support aliasing for alloeed values. More...
 
virtual bool isMultipleSelectionAllowed ()
 Is Multiple Selection Allowed. More...
 
std::string isValid (const char *value) const
 Deal with a C-style string by first converting it to a std::string so that boost::any can deal with it, calls isValid(std::string) More...
 
template<typename TYPE >
std::string isValid (const TYPE &value) const
 Calls the validator. More...
 
 IValidator ()=default
 Constructor. More...
 
virtual ~IValidator ()=default
 virtual Destructor More...
 

Private Member Functions

std::string check (const boost::any &) const override
 Always returns valid, that is "". More...
 

Detailed Description

NullValidator is a validator that doesn't.

Author
Nick Draper, Tessella Support Services plc
Date
28/11/2007

Definition at line 20 of file NullValidator.h.

Member Function Documentation

◆ check()

std::string Mantid::Kernel::NullValidator::check ( const boost::any &  ) const
overrideprivatevirtual

Always returns valid, that is "".

Returns
an empty string

Implements Mantid::Kernel::IValidator.

Definition at line 16 of file NullValidator.cpp.

◆ clone()

IValidator_sptr Mantid::Kernel::NullValidator::clone ( ) const
overridevirtual

Make a copy of the present type of validator.

Implements Mantid::Kernel::IValidator.

Definition at line 11 of file NullValidator.cpp.


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