blob: 2f8f0bd0db3a443673120c4705e86e181c12572a [file] [log] [blame]
package org.eclipse.update.core;
/*
* (c) Copyright IBM Corp. 2000, 2002.
* All Rights Reserved.
*/
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;
}
}