1 package okw.log.log2html;
3 import org.apache.commons.text.StringEscapeUtils;
8 private String type =
"ResultList";
17 this.Info = fpsListHeader;
20 public void setReturn(String fpsReturn)
25 protected void SetFail()
29 protected void SetPass()
33 protected String getHTMLResult()
35 StringBuilder sbResult =
new StringBuilder();
37 String lvsIndention = this.getLevelIndention();
41 sbResult.append( lvsIndention +
"<div class='" + this.getClass().getSimpleName() +
"'>\n" );
42 sbResult.append( lvsIndention + myIndentionBase +
"<div class='Header'>\n" );
45 if (!this.myLogs.isEmpty())
47 sbResult.append( lvsIndention + myIndentionBase + myIndentionBase +
"<div class='FoldMe' onClick='div_change(" + myID.toString() +
")'></div>\n" );
50 sbResult.append( lvsIndention + myIndentionBase + myIndentionBase +
"<div class='Info_ResultListDebug'>" + StringEscapeUtils.escapeHtml4(
this.Info) +
"</div>\n" );
52 sbResult.append( lvsIndention + myIndentionBase + myIndentionBase +
"</div>\n" );
55 sbResult.append( lvsIndention + myIndentionBase + myIndentionBase +
"<div class='Body' id='" + myID.toString() +
"' style='display: none;'>\n" );
57 for(
LogBase myLog: this.myLogs )
59 sbResult.append( myLog.getHTMLResult() );
62 sbResult.append( lvsIndention + myIndentionBase + myIndentionBase +
"</div>\n" );
64 sbResult.append( lvsIndention + myIndentionBase + myIndentionBase +
"</div>\n" );
67 return sbResult.toString();
72 protected String getJSONNodeProperties()
74 StringBuilder myJSON =
new StringBuilder();
76 myJSON.append( this.jsonElementComma(
"type", this.type ) );
77 myJSON.append( this.jsonElementComma(
"info", this.Info ) );
79 return myJSON.toString();