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