OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
LogWarning.java
1 package okw.log.log2html;
2 
3 import org.apache.commons.text.StringEscapeUtils;
4 
5 public class LogWarning extends LogBaseLeaf
6 {
7 
8  protected LogWarning(LogBase fpParent, String fpsInfo)
9  {
10  Info = fpsInfo;
11  myID = AllCount;
12  this.setParent(fpParent);
13  this.WarningCount();
14  }
15 
16 
17  protected String getHTMLResult()
18  {
19  StringBuilder sbResult = new StringBuilder();
20 
21  String lvsIndention = this.getLevelIndention();
22 
23  sbResult.append( lvsIndention + myIndentionBase + "<p class='LogWarning'>" + StringEscapeUtils.escapeHtml4(this.Info) + "</p>\n" );
24 
25  return sbResult.toString();
26  }
27 
28 
29  protected String getJSONResult()
30  {
31  StringBuilder myJSON = new StringBuilder();
32 
33  myJSON.append( this.jsonElement( "Warning", this.Info ) );
34 
35  return myJSON.toString();
36  }
37 
38  protected void SetFail()
39  {
40  }
41 
42  protected void SetPass()
43  {
44  }
45 
46 }
okw.log.log2html.LogBase
Definition: LogBase.java:7
okw.log.log2html.LogWarning
Definition: LogWarning.java:5
okw.log.log2html.LogBaseLeaf
Definition: LogBaseLeaf.java:3