KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > core > ArchiveReference


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.core;
12
13 import org.eclipse.update.core.model.ArchiveReferenceModel;
14
15 /**
16  * Convenience implementation of a site archive.
17  * <p>
18  * This class may be instantiated or subclassed by clients.
19  * </p>
20  * <p>
21  * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
22  * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
23  * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
24  * (repeatedly) as the API evolves.
25  * </p>
26  * @see org.eclipse.update.core.IArchiveReference
27  * @see org.eclipse.update.core.model.ArchiveReferenceModel
28  * @since 2.0
29  */

30 public class ArchiveReference
31     extends ArchiveReferenceModel
32     implements IArchiveReference {
33
34     /**
35      * Constructor for ArchiveReference
36      * @since 2.0
37      */

38     public ArchiveReference() {
39         super();
40     }
41
42     /**
43      * @see Object#toString()
44      * @since 2.0
45      */

46     public String JavaDoc toString() {
47         String JavaDoc result = "IArchiveReference: "; //$NON-NLS-1$
48
result =
49             result
50                 + ((getPath() == null)
51                     ? getURL().toExternalForm()
52                     : getPath() + " : " + getURL().toExternalForm()); //$NON-NLS-1$
53
return result;
54     }
55 }
56
Popular Tags