BrightSide Workbench Full Report + Source Code
org.turro.documentation.DocumentType Enum Reference

Public Member Functions

boolean checkExtension (File file)
 

Public Attributes

 ANY =(null)
 
 TEXT =(List.of("pdf", "txt", "odt", "fodt", "doc", "docx"))
 
 SHEET =(List.of("ods", "fods", "xls", "xlsx"))
 
 IMAGE =(List.of("png", "jpg"))
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file DocumentType.java.

Member Function Documentation

◆ checkExtension()

boolean org.turro.documentation.DocumentType.checkExtension ( File  file)

Definition at line 40 of file DocumentType.java.

40  {
41  if(extensions == null) return true;
42  return extensions.stream().anyMatch(e -> file.getName().toLowerCase().endsWith("." + e));
43  }

Member Data Documentation

◆ ANY

org.turro.documentation.DocumentType.ANY =(null)

Definition at line 29 of file DocumentType.java.

◆ IMAGE

org.turro.documentation.DocumentType.IMAGE =(List.of("png", "jpg"))

Definition at line 32 of file DocumentType.java.

◆ SHEET

org.turro.documentation.DocumentType.SHEET =(List.of("ods", "fods", "xls", "xlsx"))

Definition at line 31 of file DocumentType.java.

◆ TEXT

org.turro.documentation.DocumentType.TEXT =(List.of("pdf", "txt", "odt", "fodt", "doc", "docx"))

Definition at line 30 of file DocumentType.java.


The documentation for this enum was generated from the following file: