core/com.nokia.carbide.cpp/src/com/nokia/carbide/cpp/logging/DiagnosticLogGroup.java
author wpaul
Wed, 25 Mar 2009 12:24:24 -0500
changeset 9 6ef327765a4e
parent 2 d760517a8095
child 127 c937102a5510
permissions -rw-r--r--
added copyright
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     1
/*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     3
* All rights reserved.
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     4
* This component and the accompanying materials are made available
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     6
* which accompanies this distribution, and is available
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     8
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     9
* Initial Contributors:
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    10
* Nokia Corporation - initial contribution.
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    11
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    12
* Contributors:
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    13
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    14
* Description: 
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    15
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    16
*/
2
cawthron
parents:
diff changeset
    17
package com.nokia.carbide.cpp.logging;
cawthron
parents:
diff changeset
    18
cawthron
parents:
diff changeset
    19
import java.util.ArrayList;
cawthron
parents:
diff changeset
    20
cawthron
parents:
diff changeset
    21
class DiagnosticLogGroup {
cawthron
parents:
diff changeset
    22
cawthron
parents:
diff changeset
    23
	private String name;
cawthron
parents:
diff changeset
    24
	private String id;
cawthron
parents:
diff changeset
    25
	private ArrayList<DiagnosticLog> logs = new ArrayList<DiagnosticLog>();
cawthron
parents:
diff changeset
    26
cawthron
parents:
diff changeset
    27
	public DiagnosticLogGroup(String name, String id) {
cawthron
parents:
diff changeset
    28
		this.name = name;
cawthron
parents:
diff changeset
    29
		this.id = id;
cawthron
parents:
diff changeset
    30
	}
cawthron
parents:
diff changeset
    31
cawthron
parents:
diff changeset
    32
	public String getName() {
cawthron
parents:
diff changeset
    33
		return name;
cawthron
parents:
diff changeset
    34
	}
cawthron
parents:
diff changeset
    35
cawthron
parents:
diff changeset
    36
	public String getId() {
cawthron
parents:
diff changeset
    37
		return id;
cawthron
parents:
diff changeset
    38
	}
cawthron
parents:
diff changeset
    39
cawthron
parents:
diff changeset
    40
	public void add(DiagnosticLog diagnosticLog) {
cawthron
parents:
diff changeset
    41
		logs.add(diagnosticLog);
cawthron
parents:
diff changeset
    42
	}
cawthron
parents:
diff changeset
    43
cawthron
parents:
diff changeset
    44
	public DiagnosticLog[] getLogs() {
cawthron
parents:
diff changeset
    45
		return logs.toArray(new DiagnosticLog[logs.size()]);
cawthron
parents:
diff changeset
    46
	}
cawthron
parents:
diff changeset
    47
}