BrightSide Workbench Full Report + Source Code
org.turro.elephant.impl.util.ProcessMessages Class Reference

Public Member Functions

void clear ()
 
boolean getHasMessages ()
 
void addError (String message)
 
void addMessage (String message)
 
String getMessageStr ()
 

Static Public Member Functions

static ProcessMessages getInstance ()
 

Detailed Description

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

Definition at line 26 of file ProcessMessages.java.

Member Function Documentation

◆ addError()

void org.turro.elephant.impl.util.ProcessMessages.addError ( String  message)

Definition at line 46 of file ProcessMessages.java.

46  {
47  msgs.add("<span class=\"m_error\">" + message + "</span>");
48  }

◆ addMessage()

void org.turro.elephant.impl.util.ProcessMessages.addMessage ( String  message)

Definition at line 50 of file ProcessMessages.java.

50  {
51  msgs.add(message);
52  }

◆ clear()

void org.turro.elephant.impl.util.ProcessMessages.clear ( )

Definition at line 38 of file ProcessMessages.java.

38  {
39  msgs.clear();
40  }

◆ getHasMessages()

boolean org.turro.elephant.impl.util.ProcessMessages.getHasMessages ( )

Definition at line 42 of file ProcessMessages.java.

42  {
43  return !msgs.isEmpty();
44  }

◆ getInstance()

static ProcessMessages org.turro.elephant.impl.util.ProcessMessages.getInstance ( )
static

Definition at line 31 of file ProcessMessages.java.

31  {
32  if(procMsgs == null) {
33  procMsgs = new ProcessMessages();
34  }
35  return procMsgs;
36  }

◆ getMessageStr()

String org.turro.elephant.impl.util.ProcessMessages.getMessageStr ( )

Definition at line 54 of file ProcessMessages.java.

54  {
55  StringBuilder sb = new StringBuilder();
56  for(String s : msgs) {
57  sb.append(s);
58  sb.append("<br/>");
59  }
60  return sb.toString();
61  }

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