StartsWithValidator is a validator that requires the value of a property to start with one of the strings in a defined list of possibilities.
More...
#include <StartsWithValidator.h>
|
| std::string | checkValidity (const std::string &value) const override |
| | Checks if the string passed starts with one from the list.
|
| |
| std::string | checkValidity (const std::string &value) const |
| |
| std::string | checkValidity (const TYPE &value) const override |
| | Checks if the string passed is in the list.
|
| |
| bool | isAlias (const std::string &value) const |
| | Test if a value is an alias of an alowed value.
|
| |
| template<typename T > |
| bool | isAlias (const T &value) const |
| | Test if a value is an alias of an alowed value.
|
| |
| bool | isEmpty (const std::string &value) const |
| | Is the value considered empty.
|
| |
| template<typename T > |
| bool | isEmpty (const T &value) const |
| | Is the value considered empty.
|
| |
StartsWithValidator is a validator that requires the value of a property to start with one of the strings in a defined list of possibilities.
Definition at line 22 of file StartsWithValidator.h.
◆ StartsWithValidator() [1/4]
| Mantid::Kernel::StartsWithValidator::StartsWithValidator |
( |
| ) |
|
|
default |
◆ StartsWithValidator() [2/4]
| Mantid::Kernel::StartsWithValidator::StartsWithValidator |
( |
const std::vector< std::string > & |
values | ) |
|
◆ StartsWithValidator() [3/4]
| Mantid::Kernel::StartsWithValidator::StartsWithValidator |
( |
const std::set< std::string > & |
values | ) |
|
◆ StartsWithValidator() [4/4]
template<std::size_t SIZE>
| Mantid::Kernel::StartsWithValidator::StartsWithValidator |
( |
const std::array< std::string, SIZE > & |
values | ) |
|
|
inline |
Constructor.
- Parameters
-
| values | :: An array with the allowed values |
Definition at line 34 of file StartsWithValidator.h.
◆ checkValidity()
| std::string Mantid::Kernel::StartsWithValidator::checkValidity |
( |
const std::string & |
value | ) |
const |
|
overrideprotected |
◆ clone()
The documentation for this class was generated from the following files: