OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
LogLocalACCall.java
1 package okw.log.log2html;
2 
3 public class LogLocalACCall extends LogBaseNode
4 {
5  private String sourceExcerpt = "";
6  private String type = "";
7 
8  LogLocalACCall(LogBase Parent, String sourceExcerpt, String type)
9  {
10  setParent(Parent);
11  myID = AllCount;
12 
13  this.sourceExcerpt = sourceExcerpt;
14  this.type = type;
15 
16  // inkrementieren AcceptanceCriteriaCount
17  this.LocalACCallCount();
18  }
19 
20 
21  @Override
22  protected void ErrorCount()
23  {
24  ErrorCount++;
25 
26  this.LocalACCallFail();
27 
28  this.bError = true;
29 
30  if ( myParent != null)
31  {
32  myParent.ErrorCount();
33  }
34  }
35 
36 
37  @Override
38  protected void ExceptionCount()
39  {
40  ExceptionCount++;
41 
42  this.LocalACCallFail();
43 
44  this.bException = true;
45 
46  if ( myParent != null)
47  {
48  myParent.ExceptionCount();
49  }
50  }
51 
52  @Override
53  protected void LocalACCallFail()
54  {
55  if ( ! (this.bError || this.bException ) )
56  myParent.LocalACCallFail();
57  }
58 
59 
60  @Override
61  protected String getJSONNodeProperties()
62  {
63  StringBuilder myJSON = new StringBuilder();
64 
65  myJSON.append( this.jsonElementComma( "sourceExcerpt", this.sourceExcerpt ) );
66  myJSON.append( this.jsonElementComma( "type", this.type ) );
67 
68  return myJSON.toString();
69  }
70 }
okw.log.log2html.LogBaseNode
Definition: LogBaseNode.java:3
okw.log.log2html.LogBase
Definition: LogBase.java:7
okw.log.log2html.LogLocalACCall
Definition: LogLocalACCall.java:3