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