Class FileExistValidator

  • All Implemented Interfaces:
    org.eclipse.core.databinding.validation.IValidator

    public class FileExistValidator
    extends Object
    implements org.eclipse.core.databinding.validation.IValidator
    Checks, whether the File exist and it is a normal file (File.isFile())
    • Constructor Detail

      • FileExistValidator

        public FileExistValidator()
    • Method Detail

      • validate

        public org.eclipse.core.runtime.IStatus validate​(Object value)
        Checks, whether the File exist and it is a normal file (File.isFile())
        Specified by:
        validate in interface org.eclipse.core.databinding.validation.IValidator
        Parameters:
        value - the value to validate (instance of File)
        Returns:
        a status object indicating whether the validation succeeded IStatus.isOK() or not. Never null.
        Throws:
        NullPointerException - - specified value is null
        ClassCastException - - specified value is not instance of the java.io.File