OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
LogPrint.java
1 package okw.log.log2html;
2 
3 import org.apache.commons.text.StringEscapeUtils;
4 
5 public class LogPrint extends LogBaseLeaf
6 {
7 
8  public LogPrint( 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='LogPrint'>" + 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( "Print", this.Info ) );
33 
34  return myJSON.toString();
35  }
36 
37 
38  protected void SetFail()
39  {
40  }
41 
42  protected void SetPass()
43  {
44  }
45 }
okw.log.log2html.LogPrint
Definition: LogPrint.java:5
okw.log.log2html.LogBase
Definition: LogBase.java:7
okw.log.log2html.LogBaseLeaf
Definition: LogBaseLeaf.java:3