core/com.nokia.carbide.cpp/src/com/nokia/carbide/cpp/logging/DiagnosticLogGroup.java
author cawthron
Tue, 24 Mar 2009 22:20:21 -0500
changeset 2 d760517a8095
child 9 6ef327765a4e
permissions -rw-r--r--
new
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
/**
cawthron
parents:
diff changeset
     2
 * 
cawthron
parents:
diff changeset
     3
 */
cawthron
parents:
diff changeset
     4
package com.nokia.carbide.cpp.logging;
cawthron
parents:
diff changeset
     5
cawthron
parents:
diff changeset
     6
import java.util.ArrayList;
cawthron
parents:
diff changeset
     7
cawthron
parents:
diff changeset
     8
class DiagnosticLogGroup {
cawthron
parents:
diff changeset
     9
cawthron
parents:
diff changeset
    10
	private String name;
cawthron
parents:
diff changeset
    11
	private String id;
cawthron
parents:
diff changeset
    12
	private ArrayList<DiagnosticLog> logs = new ArrayList<DiagnosticLog>();
cawthron
parents:
diff changeset
    13
cawthron
parents:
diff changeset
    14
	public DiagnosticLogGroup(String name, String id) {
cawthron
parents:
diff changeset
    15
		this.name = name;
cawthron
parents:
diff changeset
    16
		this.id = id;
cawthron
parents:
diff changeset
    17
	}
cawthron
parents:
diff changeset
    18
cawthron
parents:
diff changeset
    19
	public String getName() {
cawthron
parents:
diff changeset
    20
		return name;
cawthron
parents:
diff changeset
    21
	}
cawthron
parents:
diff changeset
    22
cawthron
parents:
diff changeset
    23
	public String getId() {
cawthron
parents:
diff changeset
    24
		return id;
cawthron
parents:
diff changeset
    25
	}
cawthron
parents:
diff changeset
    26
cawthron
parents:
diff changeset
    27
	public void add(DiagnosticLog diagnosticLog) {
cawthron
parents:
diff changeset
    28
		logs.add(diagnosticLog);
cawthron
parents:
diff changeset
    29
	}
cawthron
parents:
diff changeset
    30
cawthron
parents:
diff changeset
    31
	public DiagnosticLog[] getLogs() {
cawthron
parents:
diff changeset
    32
		return logs.toArray(new DiagnosticLog[logs.size()]);
cawthron
parents:
diff changeset
    33
	}
cawthron
parents:
diff changeset
    34
}