blob: 8b59e315334533d2fa368d8e283c2e11d1b70df6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.tests.ccvs.ui.old;
import org.xml.sax.Attributes;
public class CaseEntry extends LogEntryContainer {
private String className;
public CaseEntry(LogEntryContainer parent, Attributes attributes) {
this(parent, attributes.getValue("name"), attributes.getValue("class"));
}
public CaseEntry(LogEntryContainer parent, String name, String className) {
super(parent, name);
this.className = (className != null) ? className : "unknown";
}
public void accept(ILogEntryVisitor visitor) {
visitor.visitCaseEntry(this);
}
/**
* Returns the class name of the test case.
*/
public String getClassName() {
return className;
}
}
|