Annotation Interface Directory


@Retention(RUNTIME) @Target(FIELD) public @interface Directory
Annotation that marks that an options value must be a valid path to a directory
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Gets/Sets whether the given directory must be executable
    boolean
    Gets/Sets whether the given directory must exist
    boolean
    Gets/Sets whether the given directory must be readable
    boolean
    Gets/Sets whether the given directory must be writable
  • Element Details

    • mustExist

      boolean mustExist
      Gets/Sets whether the given directory must exist
      Returns:
      True if it must exist, false otherwise
      Default:
      false
    • writable

      boolean writable
      Gets/Sets whether the given directory must be writable
      Returns:
      True if must be writable, false otherwise
      Default:
      true
    • readable

      boolean readable
      Gets/Sets whether the given directory must be readable
      Returns:
      True if must be readable, false otherwise
      Default:
      true
    • executable

      boolean executable
      Gets/Sets whether the given directory must be executable
      Returns:
      True if must be executable, false otherwise
      Default:
      false