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

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

public class DoubleValueValidator
extends java.lang.Object
implements IValueValidator

This validator validate real values of double precision. The value must be of type String. It is valid if it can be converted to double.

Version:
$Id: DoubleValueValidator.java,v 1.3 2005/12/22 09:20:33 lukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
DoubleValueValidator()
           
 
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

DoubleValueValidator

public DoubleValueValidator()
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.