BrightSide Workbench Full Report + Source Code
org.turro.warnings.WarningsVM Class Reference

Public Member Functions

 WarningsVM ()
 
GroupsModel< IWarning, Object, Object > getModel ()
 

Detailed Description

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

Definition at line 30 of file WarningsVM.java.

Constructor & Destructor Documentation

◆ WarningsVM()

org.turro.warnings.WarningsVM.WarningsVM ( )

Definition at line 32 of file WarningsVM.java.

32  {
33  }

Member Function Documentation

◆ getModel()

GroupsModel<IWarning, Object, Object> org.turro.warnings.WarningsVM.getModel ( )

Definition at line 35 of file WarningsVM.java.

35  {
36  List<List<IWarning>> data = new ArrayList<>();
37  List<String> headers = new ArrayList<>();
38 
39  for(IElephantWarning iew : ElephantWarnings.getWarnings()) {
40  List<IWarning> warnings = iew.getWarnings();
41  if(!warnings.isEmpty()) {
42  headers.add(iew.getHeader());
43  data.add(warnings);
44  }
45  }
46 
47  return new SimpleGroupsModel<>(data, headers);
48  }
Here is the call graph for this function:

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