KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > logging > log > CompositeLog


1 package org.jbpm.logging.log;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 public class CompositeLog extends ProcessLog {
7   
8   private static final long serialVersionUID = 1L;
9   
10   private List JavaDoc children = null;
11   
12   public CompositeLog() {
13   }
14
15   public List JavaDoc getChildren() {
16     return children;
17   }
18   public void setChildren(List JavaDoc children) {
19     this.children = children;
20   }
21
22   public String JavaDoc toString() {
23     return "composite";
24   }
25
26   public void addChild(ProcessLog processLog) {
27     if (children==null) children = new ArrayList JavaDoc();
28     children.add(processLog);
29   }
30 }
31
Popular Tags