Annotation Type File


  • @Retention(RUNTIME)
    @Target({METHOD,FIELD})
    public @interface File
    The File annotation marks a String property as a file such that the String can be changed by a browser.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean file
      The annotated property is a file.
      boolean folder
      The annotated property is a folder.
      java.lang.String value
      The file extension string.
    • Element Detail

      • value

        java.lang.String value
        The file extension string.
        Returns:
        the file extension string
        Default:
        ""
      • file

        boolean file
        The annotated property is a file. Defaults to true.
        Returns:
        true, if files are selectable
        Default:
        true
      • folder

        boolean folder
        The annotated property is a folder. Defaults to false.
        Returns:
        true, if folders are selectable
        Default:
        false