org.carrot2.util.attribute.constraint
Annotation Type IsFile


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface IsFile

Requires that the provided object is an instance of File and the path denoted by it is actually a file.


Optional Element Summary
 boolean mustExist
          If set to true, the provided object must be a File instance, and the file pointed to by it must exist.
 

mustExist

public abstract boolean mustExist
If set to true, the provided object must be a File instance, and the file pointed to by it must exist. If set to false, only the type of the provided object is checked.

Default:
true


Copyright (c) Dawid Weiss, Stanislaw Osinski