public class BooleanPropertyValidator extends Object implements PropertyValidator
Constructor and Description |
---|
BooleanPropertyValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(String name,
Object value)
Method to validate the property, allowing only Boolean or String(with boolean values).
|
static boolean |
validateValueIsBoolean(Object value)
Convenience method that checks that the passed value is usable as a boolean.
|
public boolean validate(String name, Object value)
validate
in interface PropertyValidator
name
- Name of propertyvalue
- Value of propertypublic static boolean validateValueIsBoolean(Object value)
value
- The valueCopyright © 2019. All rights reserved.