diff options
Diffstat (limited to 'tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/RootEntry.java')
-rw-r--r-- | tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/RootEntry.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/RootEntry.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/RootEntry.java new file mode 100644 index 000000000..1d1452eb2 --- /dev/null +++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/RootEntry.java @@ -0,0 +1,48 @@ +/******************************************************************************* + * 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 RootEntry extends LogEntryContainer { + private String sdkBuildId; + private String timestamp; + + public RootEntry(LogEntryContainer parent, Attributes attributes) { + this(parent, attributes.getValue("name"), + attributes.getValue("sdkbuild"), attributes.getValue("timestamp")); + } + + public RootEntry(LogEntryContainer parent, String name, String sdkBuildId, String timestamp) { + super(parent, name); + this.sdkBuildId = (sdkBuildId != null) ? sdkBuildId : "unknown"; + this.timestamp = (timestamp != null) ? timestamp : "unknown"; + } + + public void accept(ILogEntryVisitor visitor) { + visitor.visitRootEntry(this); + } + + /** + * Returns the SDK Build id. + */ + public String getSDKBuildId() { + return sdkBuildId; + } + + /** + * Returns the class name of the test case. + */ + public String getTimestamp() { + return timestamp; + } +} |