com.intel.gpe.gridbeans.plugins.validators
Class FileIsReadableAndNotDirectoryValidator
java.lang.Object
com.intel.gpe.gridbeans.plugins.validators.FileIsReadableAndNotDirectoryValidator
- All Implemented Interfaces:
- IValueValidator
public class FileIsReadableAndNotDirectoryValidator
- extends java.lang.Object
- implements IValueValidator
This validator is used to check if the local file exists.
The validated value must be of type GPEFile
.
The validation is successful if the local (see GPEFile.getLocalSystemFile()
)
file exsists, is readable and is a directory.
- Version:
- $Id: FileIsReadableAndNotDirectoryValidator.java,v 1.3 2005/12/22 11:06:48 dizhigul Exp $
- Author:
- Alexander Lukichev
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileIsReadableAndNotDirectoryValidator
public FileIsReadableAndNotDirectoryValidator()
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 valuereason
- The reson of the validation failure (if any)
- Returns:
true
if the value is valid
getInstance
public static IValueValidator getInstance()