blob: 994165965ed187ef0c8ad23aecba10be160b7f24 [file] [log] [blame]
/*******************************************************************************
* 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.update.core;
import org.eclipse.update.core.model.ArchiveReferenceModel;
/**
* Convenience implementation of a site archive.
* <p>
* This class may be instantiated or subclassed by clients.
* </p>
* @see org.eclipse.update.core.IArchiveReference
* @see org.eclipse.update.core.model.ArchiveReferenceModel
* @since 2.0
*/
public class ArchiveReference
extends ArchiveReferenceModel
implements IArchiveReference {
/**
* Constructor for ArchiveReference
* @since 2.0
*/
public ArchiveReference() {
super();
}
/**
* @see Object#toString()
* @since 2.0
*/
public String toString() {
String result = "IArchiveReference: "; //$NON-NLS-1$
result =
result
+ ((getPath() == null)
? getURL().toExternalForm()
: getPath() + " : " + getURL().toExternalForm());
//$NON-NLS-1$
return result;
}
}