1 package okw.log.log2html;
3 import org.apache.commons.text.StringEscapeUtils;
8 private String Start =
"";
9 private String End =
"";
10 private String featureName =
"";
11 private String sourceType =
"";
16 this.setParent(fpParent);
19 this.featureName = End;
20 this.sourceType = sourceType;
24 protected String getHTMLResult()
26 StringBuilder sbResult =
new StringBuilder();
28 String lvsIndention = this.getLevelIndention();
30 sbResult.append( lvsIndention + myIndentionBase +
"<p class='LogPassed'>" + StringEscapeUtils.escapeHtml4(
this.Info) +
"</p>\n" );
32 return sbResult.toString();
36 protected String getJSONResult()
38 StringBuilder myJSON =
new StringBuilder();
40 myJSON.append( this.jsonElementComma(
"Start", this.Start ) );
41 myJSON.append( this.jsonElementComma(
"End", this.End ) );
42 myJSON.append( this.jsonElementComma(
"featureName", this.featureName ) );
43 myJSON.append( this.jsonElement(
"sourceType", this.sourceType ) );
45 return myJSON.toString();