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