- java.lang.Object
-
- org.datanucleus.properties.StringPropertyValidator
-
- All Implemented Interfaces:
PropertyValidator
public class StringPropertyValidator extends Object implements PropertyValidator
Validator for a property that represents a String.
-
-
Constructor Summary
Constructors Constructor Description StringPropertyValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(String name, Object value)
Method to validate the property, allowing only String.
-
-
-
Method Detail
-
validate
public boolean validate(String name, Object value)
Method to validate the property, allowing only String.- Specified by:
validate
in interfacePropertyValidator
- Parameters:
name
- Name of propertyvalue
- Value of property- Returns:
- Whether it is valid
-
-