12#include "MantidAPI/DllConfig.h"
21class MANTID_API_DLL
ADSValidator :
public Kernel::TypedValidator<std::vector<std::string>> {
24 ADSValidator(
const bool allowMultiSelection =
true,
const bool isOptional =
false);
29 bool isMultipleSelectionAllowed()
override;
31 void setMultipleSelectionAllowed(
const bool isMultiSelectionAllowed);
33 bool isOptional()
const;
35 std::vector<std::string> allowedValues()
const override;
37 void setOptional(
const bool setOptional);
46 std::string checkValidity(
const std::vector<std::string> &
value)
const override;
double value
The value of the point.
ADSValidator : a validator that requires the value of a property to be present in the ADS.
bool m_AllowMultiSelection
if the validator should allow multiple selection
bool m_isOptional
if the validator should an empty selection
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Helper class which provides the Collimation Length for SANS instruments.