Class FileExistValidator
- java.lang.Object
-
- com._1c.g5.v8.dt.common.databinding.validation.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 Summary
Constructors Constructor Description FileExistValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatus
validate(Object value)
Checks, whether the File exist and it is a normal file (File.isFile()
)
-
-
-
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 interfaceorg.eclipse.core.databinding.validation.IValidator
- Parameters:
value
- the value to validate (instance ofFile
)- Returns:
- a status object indicating whether the validation succeeded
IStatus.isOK()
or not. Never null. - Throws:
NullPointerException
- - specifiedvalue
isnull
ClassCastException
- - specifiedvalue
is not instance of thejava.io.File
-
-