KickJava   Java API By Example, From Geeks To Geeks.

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


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.CategoryModel;
14
15 /**
16  * Convenience implementation of feature category definition.
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.ICategory
27  * @see org.eclipse.update.core.model.CategoryModel
28  * @since 2.0
29  */

30 public class Category extends CategoryModel implements ICategory {
31
32     /**
33      * Default Constructor
34      */

35     public Category() {
36     }
37
38     /**
39      * Constructor
40      */

41     public Category(String JavaDoc name, String JavaDoc label) {
42         setName(name);
43         setLabel(label);
44     }
45
46     /**
47      * Retrieve the detailed category description
48      * @see ICategory#getDescription()
49      */

50     public IURLEntry getDescription() {
51         return (IURLEntry) getDescriptionModel();
52     }
53 }
54
Popular Tags