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


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

Requires that the File object is a directory.


Optional Element Summary
 boolean mustExist
          If set to true, the provided object must be a File instance, and the directory 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 directory 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