org.datanucleus.properties
Class StringPropertyValidator

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

public class StringPropertyValidator
extends java.lang.Object
implements PersistencePropertyValidator

Validator for a property that represents a String.


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

Constructor Detail

StringPropertyValidator

public StringPropertyValidator()
Method Detail

validate

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

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


Copyright © 2010. All Rights Reserved.