KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > core > model > NonPluginEntryModel


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.model;
12
13 /**
14  * Non-plug-in entry model object.
15  * <p>
16  * This class may be instantiated or subclassed by clients. However, in most
17  * cases clients should instead instantiate or subclass the provided
18  * concrete implementation of this model.
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.NonPluginEntry
27  * @since 2.0
28  */

29 public class NonPluginEntryModel extends ContentEntryModel {
30
31     private String JavaDoc id = null;
32
33     /**
34      * Creates a uninitialized non-plug-in entry model object.
35      *
36      * @since 2.0
37      */

38     public NonPluginEntryModel() {
39         super();
40     }
41
42     /**
43      * Returns the entry identifier.
44      *
45      * @return entry identifier, or <code>null</code>
46      * @since 2.0
47      */

48     public String JavaDoc getIdentifier() {
49         return id;
50     }
51
52     /**
53      * Sets the entry identifier.
54      * Throws a runtime exception if this object is marked read-only.
55      *
56      * @param id entry identifier.
57      * @since 2.0
58      */

59     public void setIdentifier(String JavaDoc id) {
60         assertIsWriteable();
61         this.id = id;
62     }
63 }
64
Popular Tags