OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
LogPass.java
1 package okw.log.log2html;
2 
3 import org.apache.commons.text.StringEscapeUtils;
4 
5 public class LogPass extends LogBaseLeaf
6 {
7 
8  protected LogPass( LogBase fpParent, String fpsInfo )
9  {
10  Info = fpsInfo;
11  myID = AllCount;
12  this.setParent(fpParent);
13  PassedCount();
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='LogPassed'>" + 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( "Passed", this.Info ) );
34 
35  return myJSON.toString();
36  }
37 }
okw.log.log2html.LogPass
Definition: LogPass.java:5
okw.log.log2html.LogBase
Definition: LogBase.java:7
okw.log.log2html.LogBaseLeaf
Definition: LogBaseLeaf.java:3