| /******************************************************************************* |
| * 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.logformatter; |
| |
| |
| 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; |
| } |
| } |