KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > ifeature > IFeatureModelFactory


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.pde.internal.core.ifeature;
12
13 /**
14  * This model factory should be used to create
15  * model objects of the feature model.
16  */

17 public interface IFeatureModelFactory {
18 /**
19  * Creates a new plug-in model object.
20  *
21  * @return new instance of the feature plug-in object
22  */

23 IFeaturePlugin createPlugin();
24 /**
25  * Creates a new data model object.
26  *
27  * @return new instance of the feature data object
28  */

29 IFeatureData createData();
30 /**
31  * Creates a new feature child object.
32  *
33  * @return new instance of the feature child object
34  */

35 IFeatureChild createChild();
36 /**
37  * Creates a new import model object.
38  *
39  * @return new instance of the feature import object
40  */

41 IFeatureImport createImport();
42 /**
43  * Creates a new feature URL instance.
44  *
45  * @return a new feature URL instance
46  */

47 IFeatureURL createURL();
48 /**
49  * Creates a new feature install handler.
50  *
51  * @return a new feature install handler.
52  */

53 IFeatureInstallHandler createInstallHandler();
54 /**
55  *
56  */

57 public IFeatureInfo createInfo(int info);
58 /**
59  * Creates a new instance of a feature URL element for
60  * the provided URL parent and the type.
61  *
62  * @return a new URL element instance
63  */

64 IFeatureURLElement createURLElement(IFeatureURL parent, int elementType);
65 }
66
Popular Tags