org.datanucleus.properties
Class IntegerPropertyValidator

java.lang.Object
  extended by org.datanucleus.properties.IntegerPropertyValidator
All Implemented Interfaces:
PersistencePropertyValidator

public class IntegerPropertyValidator
extends java.lang.Object
implements PersistencePropertyValidator

Validator for a property that represents an integer.


Constructor Summary
IntegerPropertyValidator()
           
 
Method Summary
 boolean validate(java.lang.String name, java.lang.Object value)
          Method to validate the property, allowing only Boolean or String(with boolean values).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerPropertyValidator

public IntegerPropertyValidator()
Method Detail

validate

public boolean validate(java.lang.String name,
                        java.lang.Object value)
Method to validate the property, allowing only Boolean or String(with boolean values).

Specified by:
validate in interface PersistencePropertyValidator
Parameters:
name - Name of property
value - Value of property
Returns:
Whether it is valid


Copyright © 2011. All Rights Reserved.