com.intel.gpe.gridbeans.plugins.validators
Class NullOrDoubleValueValidator

java.lang.Object
  extended by com.intel.gpe.gridbeans.plugins.validators.NullOrDoubleValueValidator
All Implemented Interfaces:
IValueValidator

public class NullOrDoubleValueValidator
extends java.lang.Object
implements IValueValidator

Version:
$Id: NullOrDoubleValueValidator.java,v 1.1 2006/05/16 07:56:26 dizhigul Exp $
Author:
Denis Zhigula

Constructor Summary
NullOrDoubleValueValidator()
           
 
Method Summary
static IValueValidator getInstance()
           
 boolean isValid(java.lang.Object value, java.lang.StringBuffer reason)
          Validate the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullOrDoubleValueValidator

public NullOrDoubleValueValidator()
Method Detail

isValid

public boolean isValid(java.lang.Object value,
                       java.lang.StringBuffer reason)
Description copied from interface: IValueValidator
Validate the value.

Specified by:
isValid in interface IValueValidator
Parameters:
value - The value
reason - The reson of the validation failure (if any)
Returns:
true if the value is valid

getInstance

public static IValueValidator getInstance()


Copyright © 2008. All Rights Reserved.