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

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

public class NonEmptyStringValidator
extends java.lang.Object
implements IValueValidator

This validator checks if the supplied value is string with at least one character.

Version:
$Id: NonEmptyStringValidator.java,v 1.4 2006/02/18 18:42:31 nbmalysh Exp $
Author:
Dmitry Ivanov

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

NonEmptyStringValidator

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