Class BooleanFlagValidator
- java.lang.Object
-
- edu.caltech.nanodb.server.properties.BooleanFlagValidator
-
- All Implemented Interfaces:
PropertyValidator
public class BooleanFlagValidator extends java.lang.Object implements PropertyValidator
This validator handles properties that are Boolean flags. These properties can be set using a string (yes/no, on/off, true/false) or an integer (1/0), as well as a Boolean value. Anull
value is not permitted.
-
-
Constructor Summary
Constructors Constructor Description BooleanFlagValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
validate(java.lang.Object value)
-
-
-
Method Detail
-
validate
public java.lang.Object validate(java.lang.Object value)
- Specified by:
validate
in interfacePropertyValidator
-
-